X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8cfa09bdab8259c656927f80d7ff918c2482c537..ec8565f3c5d1df72267cb1e3375789090ac091da:/include/wx/window.h diff --git a/include/wx/window.h b/include/wx/window.h index 5396fe59ee..06b9ad44d4 100644 --- a/include/wx/window.h +++ b/include/wx/window.h @@ -48,9 +48,9 @@ // compiled in - it should only be used when building real wxFoo #ifdef __WXUNIVERSAL__ #define wxUSE_MENUS_NATIVE 0 -#else // __WXMSW__ +#else // !__WXUNIVERSAL__ #define wxUSE_MENUS_NATIVE wxUSE_MENUS -#endif // __WXUNIVERSAL__/__WXMSW__ +#endif // __WXUNIVERSAL__/!__WXUNIVERSAL__ // ---------------------------------------------------------------------------- // forward declarations @@ -424,10 +424,10 @@ public: // Override these methods for windows that have a virtual size // independent of their client size. eg. the virtual area of a - // wxScrolledWindow. Default is to alias VirtualSize to ClientSize. + // wxScrolledWindow. virtual void DoSetVirtualSize( int x, int y ); - virtual wxSize DoGetVirtualSize() const; // { return m_virtualSize; } + virtual wxSize DoGetVirtualSize() const; // Return the largest of ClientSize and BestSize (as determined // by a sizer, interior children, or other means) @@ -759,6 +759,14 @@ public: m_inheritBgCol = false; } wxColour GetBackgroundColour() const; + bool InheritsBackgroundColour() const + { + return m_inheritBgCol; + } + bool UseBgCol() const + { + return m_hasBgCol; + } // if the window shouldn't inherit its colour from the parent, override // this function to return true