[3/7] dinput: Added enumerated devices to ConfigureDevices dialog

Alexandre Julliard julliard at winehq.org
Fri Aug 26 06:19:17 CDT 2011


Lucas Fialho Zawacki <lfzawacki at gmail.com> writes:

> +static INT_PTR CALLBACK ConfigureDevicesDlgProc(HWND dialog, UINT uMsg, WPARAM wParam, LPARAM lParam)
> +{
> +    static LPDIACTIONFORMATW lpdiaf;
> +    static DIDevicesData devices_data;
> +    static ConfigureDevicesData *conf_data;
> +
> +    switch(uMsg)
> +    {
> +        case WM_INITDIALOG:
> +            /* Initialize action format and enumerate devices */
> +            conf_data = (ConfigureDevicesData*) lParam;
> +            lpdiaf = conf_data->params->lprgFormats;

It doesn't make sense to pass the info as WM_INITDIALG parameter if it's
going to be stored in global variables anyway. A better way would be to
store this in the window info.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list