Fix the checks added in r70316, wxUSE_OWNER_DRAWN should have been used
instead of inexistent and undefined wxUSE_OWNER_DRAW.
See #13851.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70343
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
GetMenuBar()->RebuildAccelTable();
}
GetMenuBar()->RebuildAccelTable();
}
ResetMaxAccelWidth();
#endif
}
ResetMaxAccelWidth();
#endif
}
#if wxUSE_IMAGE
if ( wxGetWinVersion() >= wxWinVersion_Vista )
{
#if wxUSE_IMAGE
if ( wxGetWinVersion() >= wxWinVersion_Vista )
{
wxBitmap bmp = pItem->GetBitmap(checked);
if ( bmp.IsOk() )
{
wxBitmap bmp = pItem->GetBitmap(checked);
if ( bmp.IsOk() )
{
return GetHbitmapOf(pItem->GetBitmap(checked));
}
return GetHbitmapOf(pItem->GetBitmap(checked));
}
-#endif // wxUSE_OWNER_DRAW
+#endif // wxUSE_OWNER_DRAWN
//else: bitmap is not set
return NULL;
//else: bitmap is not set
return NULL;
ResetMaxAccelWidth();
#endif
}
ResetMaxAccelWidth();
#endif
}
}
// get the menu with given handle (recursively)
}
// get the menu with given handle (recursively)
wxMenu* wxMenu::MSWGetMenu(WXHMENU hMenu)
{
// check self
wxMenu* wxMenu::MSWGetMenu(WXHMENU hMenu)
{
// check self
// unknown hMenu
return NULL;
}
// unknown hMenu
return NULL;
}
-#endif // wxUSE_OWNER_DRAW
+#endif // wxUSE_OWNER_DRAWN
// ---------------------------------------------------------------------------
// Menu Bar
// ---------------------------------------------------------------------------
// Menu Bar
wxCHECK_MSG( GetHMenu() != hMenu, NULL,
wxT("wxMenuBar::MSWGetMenu(): menu handle is wxMenuBar, not wxMenu") );
wxCHECK_MSG( GetHMenu() != hMenu, NULL,
wxT("wxMenuBar::MSWGetMenu(): menu handle is wxMenuBar, not wxMenu") );
// query all menus
for ( size_t n = 0 ; n < GetMenuCount(); ++n )
{
// query all menus
for ( size_t n = 0 ; n < GetMenuCount(); ++n )
{