X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/42e69d6b435a4dd5415caf3750db62cf45b6f373..63cc5d9d20f997961881855811f6b6987679969d:/src/msw/notebook.cpp diff --git a/src/msw/notebook.cpp b/src/msw/notebook.cpp index 90e4450857..eb551853d5 100644 --- a/src/msw/notebook.cpp +++ b/src/msw/notebook.cpp @@ -68,7 +68,8 @@ BEGIN_EVENT_TABLE(wxNotebook, wxControl) EVT_NOTEBOOK_PAGE_CHANGED(-1, wxNotebook::OnSelChange) - EVT_WINDOW_CREATE(wxNotebook::OnWindowCreate) + // doesn't work yet EVT_WINDOW_CREATE(wxNotebook::OnWindowCreate) + EVT_SIZE(wxNotebook::OnWindowCreate) EVT_SET_FOCUS(wxNotebook::OnSetFocus) @@ -122,10 +123,7 @@ bool wxNotebook::Create(wxWindow *parent, const wxString& name) { // base init - SetName(name); - SetParent(parent); - - m_windowId = id == -1 ? NewControlId() : id; + CreateBase(parent, id, pos, size, style, name); // colors and font m_backgroundColour = wxColour(GetSysColor(COLOR_BTNFACE));