]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/ownerdrw.h
destroy m_impl even if an exception is thrown from the main loop
[wxWidgets.git] / include / wx / ownerdrw.h
index 367802df0231f01fe0d8db8f0d03ddfe3c719f94..55ec29893f678ff7fc41e0858818fc2ded426634 100644 (file)
 
 #if wxUSE_OWNER_DRAWN
 
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-    #pragma interface "ownerdrw.h"
-#endif
-
 #include "wx/bitmap.h"
 #include "wx/colour.h"
 #include "wx/font.h"
@@ -157,7 +153,8 @@ private:
   static size_t ms_nLastMarginWidth;    // handy for aligning all items
 
   bool      m_bCheckable,   // used only for menu or check listbox items
-            m_bOwnerDrawn;  // true if something is non standard
+            m_bOwnerDrawn,  // true if something is non standard
+            m_isMenuItem;   // true if this is a menu item
 
   wxFont    m_font;         // font to use for drawing
   wxColour  m_colText,      // color ----"---"---"----