本文整理汇总了C++中wxDataViewCtrl::SetDeleting方法的典型用法代码示例。如果您正苦于以下问题:C++ wxDataViewCtrl::SetDeleting方法的具体用法?C++ wxDataViewCtrl::SetDeleting怎么用?C++ wxDataViewCtrl::SetDeleting使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类wxDataViewCtrl
的用法示例。
在下文中一共展示了wxDataViewCtrl::SetDeleting方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ItemsDeleted
bool wxOSXDataViewModelNotifier::ItemsDeleted(wxDataViewItem const& parent, wxDataViewItemArray const& items)
{
bool noFailureFlag;
// when this method is called and currently an item is being edited this item may have already been deleted in the model (the passed item and the being edited item have
// not to be identical because the being edited item might be below the passed item in the hierarchy);
// to prevent the control trying to ask the model to update an already deleted item the control is informed that currently a deleting process
// has been started and that variables can currently not be updated even when requested by the system:
m_DataViewCtrlPtr->SetDeleting(true);
// delete all specified items:
noFailureFlag = m_DataViewCtrlPtr->GetDataViewPeer()->Remove(parent,items);
// enable automatic updating again:
m_DataViewCtrlPtr->SetDeleting(false);
AdjustAutosizedColumns();
// done:
return noFailureFlag;
}