X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/12028905135250524409f1e7b9bfa9c55e5ce16b..efd17a1d4fa08bf549023a1cc74ce98f9db91be3:/include/wx/univ/window.h?ds=sidebyside diff --git a/include/wx/univ/window.h b/include/wx/univ/window.h index 7c5ee59230..b352f7ff07 100644 --- a/include/wx/univ/window.h +++ b/include/wx/univ/window.h @@ -142,11 +142,6 @@ public: // controls only virtual bool IsCanvasWindow() const { return FALSE; } - // return TRUE if this a container window which contains the other items: - // e.g, a listbox, listctrl, treectrl, ... and FALSE if it is a monolithic - // control (e.g. a button, checkbox, ...) - virtual bool IsContainerWindow() const { return FALSE; } - // returns TRUE if the control has "transparent" areas such // as a wxStaticText and wxCheckBox and the background should // be adapted from a parent window @@ -198,6 +193,9 @@ public: // we refresh the window when it is dis/enabled virtual bool Enable(bool enable = TRUE); + // should we use the standard control colours or not? + virtual bool ShouldInheritColours() const { return false; } + protected: // common part of all ctors void Init(); @@ -211,7 +209,7 @@ protected: // event handlers void OnSize(wxSizeEvent& event); - void OnNcPaint(wxPaintEvent& event); + void OnNcPaint(wxNcPaintEvent& event); void OnPaint(wxPaintEvent& event); void OnErase(wxEraseEvent& event); @@ -266,7 +264,7 @@ protected: #ifdef __WXMSW__ // override MSWWindowProc() to process WM_NCHITTEST - long MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam); + WXLRESULT MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam); #endif // __WXMSW__ private: