]> git.saurik.com Git - wxWidgets.git/commitdiff
Added IsOfStandardClass() as per wxMSW.
authorRobert Roebling <robert@roebling.de>
Thu, 26 Apr 2007 18:42:23 +0000 (18:42 +0000)
committerRobert Roebling <robert@roebling.de>
Thu, 26 Apr 2007 18:42:23 +0000 (18:42 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45673 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/gtk/window.h

index d879158435e123c2937e55548c476a1f0767fbde..5bcfb26b5cfcfaac20c2f9e4d0d75a9ad63b5da6 100644 (file)
@@ -260,6 +260,9 @@ public:
     GtkWidget           *m_widget;          // mostly the widget seen by the rest of GTK
     GtkWidget           *m_wxwindow;        // mostly the client area as per wxWidgets
 
     GtkWidget           *m_widget;          // mostly the widget seen by the rest of GTK
     GtkWidget           *m_wxwindow;        // mostly the client area as per wxWidgets
 
+    // return true if the window is of a standard (i.e. not wxWidgets') class
+    bool IsOfStandardClass() const { return m_wxwindow == NULL; }
+    
     // this widget will be queried for GTK's focus events
     GtkWidget           *m_focusWidget;
 
     // this widget will be queried for GTK's focus events
     GtkWidget           *m_focusWidget;