本文整理汇总了C++中BListView::RemoveItem方法的典型用法代码示例。如果您正苦于以下问题:C++ BListView::RemoveItem方法的具体用法?C++ BListView::RemoveItem怎么用?C++ BListView::RemoveItem使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BListView
的用法示例。
在下文中一共展示了BListView::RemoveItem方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: deleteGuide
void GuideWindow::deleteGuide(BMessage *msg)
{
BStringItem *item = modifyGuide(msg);
BListView *view = getCurrentListView();
view->RemoveItem(item);
view->Select(0);
view->ScrollToSelection();
}
示例2: RemoveItem
/**
* @brief Removes one item from the control.
* @param[in] index item index.
*/
void BeListViewAdapter::RemoveItem(SInt32 index)
{
BListView* listView = getListView();
BListItem* listItem = listView->RemoveItem(index);
if (NULL != listItem)
{
delete listItem;
}
}
示例3: RemoveAllItem
/**
* @brief Removes all item from the control.
*/
void BeListViewAdapter::RemoveAllItem()
{
BListView* listView = getListView();
int32 count = listView->CountItems();
int32 index;
for (index = count - 1; index >= 0; index--)
{
BListItem* listItem = listView->RemoveItem(index);
if (NULL != listItem)
{
delete listItem;
}
}
}
示例4: iupdrvListRemoveItem
void iupdrvListRemoveItem(Ihandle* ih, int pos)
{
BView* view = (BView*)ih->handle;
BMenuField* menu = dynamic_cast<BMenuField*>(view);
if(menu)
{
UNIMPLEMENTED
return;
}
BListView* listview = iuphaikuGetListView(view);
if(listview) {
BListItem* item = listview->RemoveItem(pos - 1);
delete item;
} else {
fprintf(stderr, "View hierarchy problem\n");
}
}