[ 2710782 ] win32: saved window position gradually floats around the screen

This commit is contained in:
zeromus 2009-03-26 20:52:01 +00:00
parent bbae9c713e
commit 331c4ee269
1 changed files with 6 additions and 3 deletions

View File

@ -2154,11 +2154,14 @@ LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM
case WM_MOVING:
SendMessage(hwnd, WM_PAINT, 0, 0x12345678);
return 0;
case WM_MOVE:
WndY = HIWORD(lParam);
WndX = LOWORD(lParam);
case WM_MOVE: {
RECT rect;
GetWindowRect(MainWindow->getHWnd(),&rect);
WndX = rect.left;
WndY = rect.top;
UpdateWndRects(hwnd);
return 0;
}
case WM_SIZING:
{
SendMessage(hwnd, WM_PAINT, 0, 0x12345678);