GetMenuBar()->RebuildAccelTable();
}
+#if wxUSE_OWNER_DRAW
ResetMaxAccelWidth();
+#endif
}
//else: it is a separator, they can't have accels, nothing to do
}
#if wxUSE_IMAGE
if ( wxGetWinVersion() >= wxWinVersion_Vista )
{
+#if wxUSE_OWNER_DRAW
wxBitmap bmp = pItem->GetBitmap(checked);
if ( bmp.IsOk() )
{
return GetHbitmapOf(pItem->GetBitmap(checked));
}
+#endif // wxUSE_OWNER_DRAW
//else: bitmap is not set
return NULL;
m_accels.RemoveAt(n);
+#if wxUSE_OWNER_DRAW
ResetMaxAccelWidth();
+#endif
}
//else: this item doesn't have an accel, nothing to do
#endif // wxUSE_ACCEL
}
// get the menu with given handle (recursively)
+#if wxUSE_OWNER_DRAW
wxMenu* wxMenu::MSWGetMenu(WXHMENU hMenu)
{
// check self
// unknown hMenu
return NULL;
}
+#endif // wxUSE_OWNER_DRAW
// ---------------------------------------------------------------------------
// Menu Bar
wxCHECK_MSG( GetHMenu() != hMenu, NULL,
wxT("wxMenuBar::MSWGetMenu(): menu handle is wxMenuBar, not wxMenu") );
+#if wxUSE_OWNER_DRAW
// query all menus
for ( size_t n = 0 ; n < GetMenuCount(); ++n )
{
if ( menu )
return menu;
}
+#endif
// unknown hMenu
return NULL;