From 7721116699a08609eeb5667b0c020b145e1cc5eb Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 5 Feb 2011 20:24:47 +0000 Subject: [PATCH] Re-enable generation of wxEVT_MOVE_{START,END} events under wxMSW. Handling of WM_{ENTER,EXIT}SIZEMOVE was disabled as a side-effect of r47927, possibly unintentionally. Revert this change to generate these events again. Also document that they're MSW-only for now. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66846 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- interface/wx/event.h | 2 ++ src/msw/window.cpp | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/interface/wx/event.h b/interface/wx/event.h index 4f76d54ef5..b10a9321bf 100644 --- a/interface/wx/event.h +++ b/interface/wx/event.h @@ -3841,6 +3841,8 @@ public: A move event holds information about wxTopLevelWindow move change events. + These events are currently only generated by wxMSW port. + @beginEventTable{wxMoveEvent} @event{EVT_MOVE(func)} Process a @c wxEVT_MOVE event, which is generated when a window is moved. diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 0c442570e2..71e169e0bc 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -2727,7 +2727,7 @@ WXLRESULT wxWindowMSW::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM l } } break; -#if 0 + case WM_ENTERSIZEMOVE: { processed = HandleEnterSizeMove(); @@ -2739,7 +2739,7 @@ WXLRESULT wxWindowMSW::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM l processed = HandleExitSizeMove(); } break; -#endif + case WM_SIZING: { LPRECT pRect = (LPRECT)lParam; -- 2.50.0