From 9026ad85a9792a6e5a6b41320886b154c38a9d0d Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 10 Jun 1999 20:48:15 +0000 Subject: [PATCH] wxNotebook compilation fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2750 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/msw/notebook.h | 2 +- src/msw/notebook.cpp | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) 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) -- 2.45.2