1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-24 17:49:52 +01:00

check WM_LBUTTONDOWN on SetCursor too

This commit is contained in:
FunkyFr3sh 2021-06-05 03:54:24 +02:00
parent db41c485de
commit 33914a0f76

View File

@ -76,12 +76,12 @@ LRESULT CALLBACK fake_WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam
} }
case WM_SETCURSOR: case WM_SETCURSOR:
{ {
// show resize cursor on window borders /* show resize cursor on window borders */
if ((HWND)wParam == g_ddraw->hwnd) if ((HWND)wParam == g_ddraw->hwnd)
{ {
WORD message = HIWORD(lParam); WORD message = HIWORD(lParam);
if (message == WM_MOUSEMOVE) if (message == WM_MOUSEMOVE || message == WM_LBUTTONDOWN)
{ {
WORD htcode = LOWORD(lParam); WORD htcode = LOWORD(lParam);