]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/defs.h
Return correct invoking window for submenus of a popup menu.
[wxWidgets.git] / include / wx / defs.h
index b1e7f2062f8f588fccab2aff33c2cdb98f803667..4a8967ba85b630b32dbae3e4eb67ec7ab425681c 100644 (file)
@@ -1495,8 +1495,11 @@ enum wxAlignment
 /* misc. flags for wxSizer items */
 enum wxSizerFlagBits
 {
-    /* for compatibility only, default now, don't use explicitly any more */
-#if WXWIN_COMPATIBILITY_2_8
+    // wxADJUST_MINSIZE doesn't do anything any more but we still define it for
+    // compatibility. Notice that it may be also predefined (as 0, hopefully)
+    // in the user code in order to use it even in !WXWIN_COMPATIBILITY_2_8
+    // builds so don't redefine it in such case.
+#if WXWIN_COMPATIBILITY_2_8 && !defined(wxADJUST_MINSIZE)
     wxADJUST_MINSIZE               = 0,
 #endif
     wxFIXED_MINSIZE                = 0x8000,