]> git.saurik.com Git - wxWidgets.git/commitdiff
wxSizeEvent now carries the total size, not just the client size
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 9 Apr 2002 23:56:20 +0000 (23:56 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 9 Apr 2002 23:56:20 +0000 (23:56 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15068 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/frame.cpp
src/msw/window.cpp

index effd343a88674f207384790913bc6a4f8a5cb651..57c0235fbe01e5cb84e72a8c57ad00fc2afc1884 100644 (file)
@@ -692,9 +692,7 @@ bool wxFrame::HandleSize(int x, int y, WXUINT id)
         PositionToolBar();
 #endif // wxUSE_TOOLBAR
 
-        wxSizeEvent event(wxSize(x, y), m_windowId);
-        event.SetEventObject( this );
-        processed = GetEventHandler()->ProcessEvent(event);
+        processed = wxWindow::HandleSize(x, y, id);
     }
 
     return processed;
index b7ed11bbb67ced9f68befaf653daf92bbe48b74c..5771f598e1ee15813ebe3bd5dfd4de71bea8185a 100644 (file)
@@ -3775,9 +3775,13 @@ bool wxWindowMSW::HandleMove(int x, int y)
     return GetEventHandler()->ProcessEvent(event);
 }
 
-bool wxWindowMSW::HandleSize(int w, int h, WXUINT WXUNUSED(flag))
+bool wxWindowMSW::HandleSize(int WXUNUSED(w), int WXUNUSED(h),
+                             WXUINT WXUNUSED(flag))
 {
-    wxSizeEvent event(wxSize(w, h), m_windowId);
+    // don't use w and h parameters as they specify the client size while
+    // according to the docs EVT_SIZE handler is supposed to receive the total
+    // size
+    wxSizeEvent event(GetSize(), m_windowId);
     event.SetEventObject(this);
 
     return GetEventHandler()->ProcessEvent(event);