GetMenuBar()->RebuildAccelTable();
}
-#if wxUSE_OWNER_DRAW
+#if wxUSE_OWNER_DRAWN
ResetMaxAccelWidth();
#endif
}
#if wxUSE_IMAGE
if ( wxGetWinVersion() >= wxWinVersion_Vista )
{
-#if wxUSE_OWNER_DRAW
+#if wxUSE_OWNER_DRAWN
wxBitmap bmp = pItem->GetBitmap(checked);
if ( bmp.IsOk() )
{
return GetHbitmapOf(pItem->GetBitmap(checked));
}
-#endif // wxUSE_OWNER_DRAW
+#endif // wxUSE_OWNER_DRAWN
//else: bitmap is not set
return NULL;
m_accels.RemoveAt(n);
-#if wxUSE_OWNER_DRAW
+#if wxUSE_OWNER_DRAWN
ResetMaxAccelWidth();
#endif
}
}
// get the menu with given handle (recursively)
-#if wxUSE_OWNER_DRAW
+#if wxUSE_OWNER_DRAWN
wxMenu* wxMenu::MSWGetMenu(WXHMENU hMenu)
{
// check self
// unknown hMenu
return NULL;
}
-#endif // wxUSE_OWNER_DRAW
+#endif // wxUSE_OWNER_DRAWN
// ---------------------------------------------------------------------------
// Menu Bar
wxCHECK_MSG( GetHMenu() != hMenu, NULL,
wxT("wxMenuBar::MSWGetMenu(): menu handle is wxMenuBar, not wxMenu") );
-#if wxUSE_OWNER_DRAW
+#if wxUSE_OWNER_DRAWN
// query all menus
for ( size_t n = 0 ; n < GetMenuCount(); ++n )
{