X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/789295bf7bd4b58b0270800fb689fce0786dae15..02fe546f1fe77a53b6de70a663113a9e22c1ccf4:/src/msw/notebook.cpp diff --git a/src/msw/notebook.cpp b/src/msw/notebook.cpp index e5ff7ec7f4..f16fa88b61 100644 --- a/src/msw/notebook.cpp +++ b/src/msw/notebook.cpp @@ -68,8 +68,7 @@ BEGIN_EVENT_TABLE(wxNotebook, wxControl) EVT_NOTEBOOK_PAGE_CHANGED(-1, wxNotebook::OnSelChange) - // doesn't work yet EVT_WINDOW_CREATE(wxNotebook::OnWindowCreate) - EVT_SIZE(wxNotebook::OnWindowCreate) + EVT_SIZE(wxNotebook::OnSize) EVT_SET_FOCUS(wxNotebook::OnSetFocus) @@ -378,7 +377,7 @@ bool wxNotebook::InsertPage(int nPage, // wxNotebook callbacks // ---------------------------------------------------------------------------- -void wxNotebook::OnWindowCreate(wxWindowCreateEvent& event) +void wxNotebook::OnSize(wxSizeEvent& event) { // make sure the current page is shown and has focus (it's useful because all // pages are created invisible initially)