X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6463b9f5399b8670a0c74f2f8666bc2c9f37a406..366e420233bc8590ef2fc333ba627267e6b81ca1:/include/wx/univ/window.h diff --git a/include/wx/univ/window.h b/include/wx/univ/window.h index 01115c15f3..b352f7ff07 100644 --- a/include/wx/univ/window.h +++ b/include/wx/univ/window.h @@ -193,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(); @@ -206,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); @@ -261,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: