X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1169a91932273bc84c23ed9dbd0a2da064d59d66..46d492a879f7fec474c0847dd0637593453746eb:/include/wx/univ/window.h diff --git a/include/wx/univ/window.h b/include/wx/univ/window.h index dafa83279d..9bb9477eb1 100644 --- a/include/wx/univ/window.h +++ b/include/wx/univ/window.h @@ -55,14 +55,16 @@ public: // ctors and create functions // --------------------------- - wxWindow(); + wxWindow() { Init(); } wxWindow(wxWindow *parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, - const wxString& name = wxPanelNameStr); + const wxString& name = wxPanelNameStr) + : wxWindowNative(parent, id, pos, size, style | wxCLIP_CHILDREN, name) + { Init(); } bool Create(wxWindow *parent, wxWindowID id, @@ -204,7 +206,7 @@ protected: // event handlers void OnSize(wxSizeEvent& event); - void OnNcPaint(wxPaintEvent& event); + void OnNcPaint(wxNcPaintEvent& event); void OnPaint(wxPaintEvent& event); void OnErase(wxEraseEvent& event); @@ -259,7 +261,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: