From 4e4a5fed9f544d3bec51b75b6e8638d4481d8534 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 9 Apr 2002 23:56:20 +0000 Subject: [PATCH] wxSizeEvent now carries the total size, not just the client size git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15068 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/frame.cpp | 4 +--- src/msw/window.cpp | 8 ++++++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/msw/frame.cpp b/src/msw/frame.cpp index effd343a88..57c0235fbe 100644 --- a/src/msw/frame.cpp +++ b/src/msw/frame.cpp @@ -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; diff --git a/src/msw/window.cpp b/src/msw/window.cpp index b7ed11bbb6..5771f598e1 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -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); -- 2.45.2