[2/3] dinput: Prevent apps from hiding mouse cursor in the ConfigureDevices dialog.

Lucas Zawacki lfzawacki at gmail.com
Tue Sep 13 16:32:31 CDT 2011


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 at winehq.org>:
> Lucas Fialho Zawacki <lfzawacki at 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 at winehq.org
>



More information about the wine-devel mailing list