]> git.saurik.com Git - wxWidgets.git/commitdiff
corrections after last commit, (see #10452 comment:6)
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 31 Jan 2009 21:53:03 +0000 (21:53 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 31 Jan 2009 21:53:03 +0000 (21:53 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58571 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/menuitem.cpp

index 38088dba4b33d09b7442a1b3d7bc282d70559fb6..13a28675cd601726eed57ba1e3fc5c97ea9e18cd 100644 (file)
@@ -383,11 +383,15 @@ void wxMenuItem::SetItemLabel(const wxString& txt)
     // work as it resets the menu bitmap, so we need to first get the old item
     // state and then modify it
     const bool isLaterThanWin95 = wxGetWinVersion() > wxWinVersion_95;
-    info.fMask = MIIM_ID | MIIM_SUBMENU | MIIM_CHECKMARKS | MIIM_DATA;
+    info.fMask = MIIM_STATE |
+                 MIIM_ID |
+                 MIIM_SUBMENU |
+                 MIIM_CHECKMARKS |
+                 MIIM_DATA;
     if ( isLaterThanWin95 )
         info.fMask |= MIIM_BITMAP | MIIM_FTYPE;
     else
-        info.fMask = MIIM_TYPE;
+        info.fMask |= MIIM_TYPE;
     if ( !::GetMenuItemInfo(hMenu, id, FALSE, &info) )
     {
         wxLogLastError(wxT("GetMenuItemInfo"));