Re: [2/3] dinput: Prevent apps from hiding mouse cursor in the ConfigureDevices dialog.
Lucas Fialho Zawacki <lfzawacki(a)gmail.com> writes:
@@ -377,6 +377,12 @@ static INT_PTR CALLBACK ConfigureDevicesDlgProc(HWND dialog, UINT uMsg, WPARAM w break; }
+ case WM_ACTIVATE: + /* Prevent mouse cursor from disappearing inside the dialog */ + ShowCursor(1); + + break;
That will screw up the cursor show count, you can receive multiple WM_ACTIVATE. -- Alexandre Julliard julliard(a)winehq.org
Is there a way of doing what I want? Would using GetCursorInfo() to discover if it's hidden, and then show it, work? 2011/9/13 Alexandre Julliard <julliard(a)winehq.org>:
Lucas Fialho Zawacki <lfzawacki(a)gmail.com> writes:
@@ -377,6 +377,12 @@ static INT_PTR CALLBACK ConfigureDevicesDlgProc(HWND dialog, UINT uMsg, WPARAM w break; }
+ case WM_ACTIVATE: + /* Prevent mouse cursor from disappearing inside the dialog */ + ShowCursor(1); + + break;
That will screw up the cursor show count, you can receive multiple WM_ACTIVATE.
-- Alexandre Julliard julliard(a)winehq.org
participants (2)
-
Alexandre Julliard -
Lucas Zawacki