wxMenu::Append (and similar) now return a pointer to the wxMenuItem

that was added.  Checked on MSW, GTK, and Mac, other port authors
please double check changes.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25341 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-01-23 18:46:05 +00:00
parent 2f3f436922
commit 9add93670b
19 changed files with 181 additions and 164 deletions

View File

@@ -1110,7 +1110,7 @@ void wxMenu::EndRadioGroup()
m_startRadioGroup = -1;
}
bool wxMenu::DoAppend(wxMenuItem *item)
wxMenuItem* wxMenu::DoAppend(wxMenuItem *item)
{
#if 0
// not used at all
@@ -1158,21 +1158,21 @@ bool wxMenu::DoAppend(wxMenuItem *item)
}
if ( !wxMenuBase::DoAppend(item) )
return FALSE;
return NULL;
OnItemAdded(item);
return TRUE;
return item;
}
bool wxMenu::DoInsert(size_t pos, wxMenuItem *item)
wxMenuItem* wxMenu::DoInsert(size_t pos, wxMenuItem *item)
{
if ( !wxMenuBase::DoInsert(pos, item) )
return FALSE;
return NULL;
OnItemAdded(item);
return TRUE;
return item;
}
wxMenuItem *wxMenu::DoRemove(wxMenuItem *item)