From bbb8a1aad6778038b9e7bb9880d74f58e0a0bfe6 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 26 Sep 2009 13:31:32 +0000 Subject: [PATCH] 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 --- src/msw/menu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.45.2