X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ac6a837eeddb76f2fabe2389cf5fe39ca3b99041..d642db66a5efc82d374b813022c72ba88bc50839:/include/wx/generic/private/listctrl.h?ds=sidebyside diff --git a/include/wx/generic/private/listctrl.h b/include/wx/generic/private/listctrl.h index 2267ca3dd7..d7aa7883e5 100644 --- a/include/wx/generic/private/listctrl.h +++ b/include/wx/generic/private/listctrl.h @@ -336,13 +336,16 @@ protected: public: wxListHeaderWindow(); - wxListHeaderWindow( wxWindow *win, - wxWindowID id, - wxListMainWindow *owner, - const wxPoint &pos = wxDefaultPosition, - const wxSize &size = wxDefaultSize, - long style = 0, - const wxString &name = wxT("wxlistctrlcolumntitles") ); + // We provide only Create(), not the ctor, because we need to create the + // C++ object before creating the window, see the explanations in + // CreateOrDestroyHeaderWindowAsNeeded() + bool Create( wxWindow *win, + wxWindowID id, + wxListMainWindow *owner, + const wxPoint &pos = wxDefaultPosition, + const wxSize &size = wxDefaultSize, + long style = 0, + const wxString &name = wxT("wxlistctrlcolumntitles") ); virtual ~wxListHeaderWindow();