]> git.saurik.com Git - wxWidgets.git/commitdiff
wxNotebook compilation fix
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 10 Jun 1999 20:48:15 +0000 (20:48 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 10 Jun 1999 20:48:15 +0000 (20:48 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2750 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/notebook.h
src/msw/notebook.cpp

index 934be280476a610ba17b6cc835aef9cdfd04462c..586144ed879506c79c19a3daa360440fc4ea7ede 100644 (file)
@@ -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);
index e5ff7ec7f44fb630f556a0ef1adebd192a568a91..f16fa88b610298004b54d12418c3214a88811c09 100644 (file)
@@ -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)