Use checked bitmap for menu items under Vista.
The normal (unchecked) bitmap was always used for the menu items under Vista, fix this and do use the checked bitmap if needed. Closes #11244. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62142 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
bbb0ff36db
commit
bbb8a1aad6
@ -399,7 +399,7 @@ HBITMAP GetHBitmapForMenu(wxMenuItem *pItem, bool checked = true)
|
||||
pItem->SetBitmap(img, checked);
|
||||
}
|
||||
|
||||
return GetHbitmapOf(pItem->GetBitmap());
|
||||
return GetHbitmapOf(pItem->GetBitmap(checked));
|
||||
}
|
||||
}
|
||||
#endif // wxUSE_IMAGE
|
||||
|
Loading…
Reference in New Issue
Block a user