No significant change
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22182 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
74d0b78c36
commit
beb471b5e9
@ -649,6 +649,10 @@ void wxMenuBar::Refresh()
|
|||||||
|
|
||||||
WXHMENU wxMenuBar::Create()
|
WXHMENU wxMenuBar::Create()
|
||||||
{
|
{
|
||||||
|
// Note: this totally doesn't work on Smartphone,
|
||||||
|
// since you have to use resources.
|
||||||
|
// We'll have to find another way to add a menu
|
||||||
|
// by changing/adding menu items to an existing menu.
|
||||||
#ifdef __WXWINCE__
|
#ifdef __WXWINCE__
|
||||||
if ( m_hMenu != 0 )
|
if ( m_hMenu != 0 )
|
||||||
return m_hMenu;
|
return m_hMenu;
|
||||||
@ -674,8 +678,10 @@ WXHMENU wxMenuBar::Create()
|
|||||||
wxString label = wxStripMenuCodes(GetLabelTop(i));
|
wxString label = wxStripMenuCodes(GetLabelTop(i));
|
||||||
tbButton.iString = (int) label.c_str();
|
tbButton.iString = (int) label.c_str();
|
||||||
|
|
||||||
|
int position = i;
|
||||||
|
|
||||||
tbButton.idCommand = NewControlId();
|
tbButton.idCommand = NewControlId();
|
||||||
if (!::SendMessage(hCommandBar, TB_INSERTBUTTON, i, (LPARAM)&tbButton))
|
if (!::SendMessage(hCommandBar, TB_INSERTBUTTON, position, (LPARAM)&tbButton))
|
||||||
{
|
{
|
||||||
wxLogLastError(wxT("TB_INSERTBUTTON"));
|
wxLogLastError(wxT("TB_INSERTBUTTON"));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user