26 Oct
2002
26 Oct
'02
2:25 p.m.
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. -- Dimi.
8452
Age (days ago)
8452
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dimitrie O. Paun