Platform and compiler-specific checking for MSW and Mac now done
in wx/xxx/chkconf.h. Removed some very obsolete settings, and MSW-specific settings from Mac's setup0.h. wxTimer now derives from wxEvtHandler. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21177 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -520,6 +520,16 @@ wxMenuItem *wxMenuBase::FindChildItem(int id, size_t *ppos) const
|
||||
return item;
|
||||
}
|
||||
|
||||
// find by position
|
||||
wxMenuItem* wxMenuBase::FindItemByPosition(size_t position) const
|
||||
{
|
||||
wxASSERT ( position > -1 && position < m_items.GetCount() );
|
||||
if ( position > -1 && position < m_items.GetCount() )
|
||||
return m_items.Item( position )->GetData();
|
||||
else
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxMenu helpers used by derived classes
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user