DSTRICT: commdlg

Dimitrie O. Paun dpaun at rogers.com
Sat Oct 26 09:25:15 CDT 2002

On October 26, 2002 11:14 am, Matthew Davison wrote:
> -   FillRect(hDC, &lpp->old3angle, GetClassLongA( hwnd, GCL_HBRBACKGROUND));
> +   FillRect((HDC)hDC, &lpp->old3angle, (HBRUSH)GetClassLongA( hwnd, GCL_HBRBACKGROUND));

This is not right. At that point, hDC should be a HDC, if it's not,
you have to modify the code around it.

Such casting should happen in the WindowProc, all functions
should work with the proper type.

Alexandre, please do not apply the patch in this form: it silence warnings,
and it makes it very difficult to properly correct the code in the future.


More information about the wine-devel mailing list