How would you colour a control, for example colour the background of a button control to Black and the text of the button control to white...
HWND hButton = CreateWindowEx(0,"BUTTON","&Send",WS_VISIBLE | WS_CHILD,230,100,70,20,hwnd,(HMENU)cmdBUTTON,0,0);
if ( hButton == NULL )
{
MessageBox(hwnd,"Error: button could not be created","Error",0);
}
/*Change the colour of the created button here..*/
I've tried looking into API's like SetTextColor() and SetBkColor() but I can't get anything working as such.
Thanks.