]> git.saurik.com Git - wxWidgets.git/commitdiff
WM_MOVE processing added (wxMoveEvent generated)
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 14 Aug 1998 21:41:53 +0000 (21:41 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 14 Aug 1998 21:41:53 +0000 (21:41 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@535 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/window.cpp

index 5abe05b464753c04816f489c990cdf71cdbaa9ca..15694984793a1d8807059f1e6450e36ca2acd2e4 100644 (file)
@@ -1031,10 +1031,19 @@ long wxWindow::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam)
           break;
         }
 
+        case WM_MOVE:
+          {
+            wxMoveEvent event(wxPoint(LOWORD(lParam), HIWORD(lParam)),
+                              m_windowId);
+            event.SetEventObject(this);
+            if ( !GetEventHandler()->ProcessEvent(event) )
+              Default();
+          }
+          break;
+
         case WM_WINDOWPOSCHANGING:
         {
-          WINDOWPOS *pos = (WINDOWPOS *)lParam;
-          MSWOnWindowPosChanging((void *)pos);
+          MSWOnWindowPosChanging((void *)lParam);
           break;
         }