WM_CTLCOLORSTATIC and a HBRUSH
hi, im using a hbrush with ctlcolorstatic.
the problem is that the color is not working right, here is the code.
Code:
case WM_CTLCOLORSTATIC:
SetBkColor((HDC)wParam , hBrush);
SetTextColor((HDC)wParam ,RGB(255,255,255));
return ((LRESULT)hBrush);
the background color of it seems to be changing right but the background color of the text is allways black.
im getting 2 warnings and they are
Code:
'unsigned long ' differs in levels of indirection from 'struct HBRUSH__ *'
'SetBkColor' : different types for formal and actual parameter 2
im getting them for the SetBkColor line..im not to sure what they mean either.
if some one could help me out with this problem it would be much appriciated.
thanks