本文整理汇总了C++中BListView::MoveTo方法的典型用法代码示例。如果您正苦于以下问题:C++ BListView::MoveTo方法的具体用法?C++ BListView::MoveTo怎么用?C++ BListView::MoveTo使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BListView
的用法示例。
在下文中一共展示了BListView::MoveTo方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
//.........这里部分代码省略.........
{
localLeft = paramMatrixLeft + hpad;
float columnRight = 0;
excessBottom = 0;
for ( uint32 jj = 0;
jj < mui32Columns;
jj++)
{
excessRight = 0;
LayoutMatrixItem * lmi = (LayoutMatrixItem *)mpItemsList->ItemAt(index++);
switch (lmi->mui32Kind)
{
case KIND_MYPOPUPMENU:
{
hasPopUpMenu = true;
MyPopUpMenu * scratchPopUpMenu = (MyPopUpMenu *)lmi->mpItem;
scratchPopUpMenu->mfLabelLeft = localLeft;
excessRightHold = lmi->mfWidthPref + scratchPopUpMenu->mfLabelWidth;
scratchPopUpMenu->SetLeft(localLeft);
scratchPopUpMenu->mfLabelTop = localTop;
if ((scratchPopUpMenu->mfHeight + 9) > scratchPopUpMenu->mfLabelHeight)
{
excessBottomHold = scratchPopUpMenu->mfHeight + 10;
}
else
{
excessBottomHold = scratchPopUpMenu->mfLabelHeight + 1;
}
}
break;
case KIND_MYTEXTVIEW:
{
BTextView * scratchTextView = (BTextView *)lmi->mpItem;
scratchTextView->MoveTo(localLeft, localTop);
excessRightHold = ((MyTextView *)scratchTextView)->mfWidth;
excessBottomHold = ((MyTextView *)scratchTextView)->mfHeight;
}
break;
case KIND_MYLISTVIEW:
{
BListView * scratchListView = (BListView *)lmi->mpItem;
scratchListView->MoveTo(localLeft, localTop);
((BListView *)(lmi->mpItem))->GetPreferredSize(&excessRightHold, &excessBottomHold);
}
break;
case KIND_MYBUTTON:
{
BButton * scratchMyButton = (BButton *)lmi->mpItem;
scratchMyButton->MoveTo(localLeft, localTop);
excessRightHold = lmi->mfWidthPref;
excessBottomHold = lmi->mfHeightPref;
}
break;
case KIND_MYSLIDER:
{
BSlider * scratchMySlider = (BSlider *)lmi->mpItem;
scratchMySlider->MoveTo(localLeft, localTop);
excessRightHold = lmi->mfWidthPref;
excessBottomHold = lmi->mfHeightPref;
}
break;
case KIND_MYSPACER:
{
MySpacer * scratchMySpacer = (MySpacer *)lmi->mpItem;
if ( (mui32Flags & SAMESIZE)
&&