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:
Julian Smart
2003-06-16 12:31:45 +00:00
parent 748418c02b
commit 01ebf75203
14 changed files with 263 additions and 450 deletions

View File

@@ -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
// ----------------------------------------------------------------------------