From: Vadim Zeitlin Date: Thu, 10 Jun 1999 20:48:15 +0000 (+0000) Subject: wxNotebook compilation fix X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9026ad85a9792a6e5a6b41320886b154c38a9d0d wxNotebook compilation fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2750 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/msw/notebook.h b/include/wx/msw/notebook.h index 934be28047..586144ed87 100644 --- a/include/wx/msw/notebook.h +++ b/include/wx/msw/notebook.h @@ -143,7 +143,7 @@ public: // callbacks // --------- - void OnWindowCreate(wxWindowCreateEvent& event); + void OnSize(wxSizeEvent& event); void OnSelChange(wxNotebookEvent& event); void OnSetFocus(wxFocusEvent& event); void OnNavigationKey(wxNavigationKeyEvent& event); 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)