From: Vadim Zeitlin Date: Sat, 26 Sep 2009 13:31:32 +0000 (+0000) Subject: Use checked bitmap for menu items under Vista. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/bbb8a1aad6778038b9e7bb9880d74f58e0a0bfe6?ds=sidebyside 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 --- diff --git a/src/msw/menu.cpp b/src/msw/menu.cpp index 657a3fb3c3..93984343d1 100644 --- a/src/msw/menu.cpp +++ b/src/msw/menu.cpp @@ -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