]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/menuitem.cpp
fixes for new lib dirs for wxMSW
[wxWidgets.git] / src / msw / menuitem.cpp
index e55b17d3341cccdc3988854ee69a0e7e181297f4..09ef0d039fc89c8875348316c246a415c484043c 100644 (file)
@@ -17,7 +17,7 @@
 // headers
 // ---------------------------------------------------------------------------
 
 // headers
 // ---------------------------------------------------------------------------
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
     #pragma implementation "menuitem.h"
 #endif
 
     #pragma implementation "menuitem.h"
 #endif
 
@@ -349,7 +349,10 @@ void wxMenuItem::SetText(const wxString& text)
 
 #ifdef __WXWINCE__
         // FIXME: complete this, applying the old
 
 #ifdef __WXWINCE__
         // FIXME: complete this, applying the old
-        // flags
+        // flags.
+        // However, the WinCE doc for SetMenuItemInfo
+        // says that you can't use it to set the menu
+        // item state; only data, id and type.
         MENUITEMINFO info;
         wxZeroMemory(info);
         info.cbSize = sizeof(info);
         MENUITEMINFO info;
         wxZeroMemory(info);
         info.cbSize = sizeof(info);