[ 2710782 ] win32: saved window position gradually floats around the screen
This commit is contained in:
parent
bbae9c713e
commit
331c4ee269
|
@ -2154,11 +2154,14 @@ LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM
|
||||||
case WM_MOVING:
|
case WM_MOVING:
|
||||||
SendMessage(hwnd, WM_PAINT, 0, 0x12345678);
|
SendMessage(hwnd, WM_PAINT, 0, 0x12345678);
|
||||||
return 0;
|
return 0;
|
||||||
case WM_MOVE:
|
case WM_MOVE: {
|
||||||
WndY = HIWORD(lParam);
|
RECT rect;
|
||||||
WndX = LOWORD(lParam);
|
GetWindowRect(MainWindow->getHWnd(),&rect);
|
||||||
|
WndX = rect.left;
|
||||||
|
WndY = rect.top;
|
||||||
UpdateWndRects(hwnd);
|
UpdateWndRects(hwnd);
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
case WM_SIZING:
|
case WM_SIZING:
|
||||||
{
|
{
|
||||||
SendMessage(hwnd, WM_PAINT, 0, 0x12345678);
|
SendMessage(hwnd, WM_PAINT, 0, 0x12345678);
|
||||||
|
|
Loading…
Reference in New Issue