Hello,
I'm trying to change the color of the CheckBox but not having much luck so far. Here's how I create a CheckBox:
^^^ this is executed on WM_CREATE message.Code:hButton = CreateWindow("button", "CheckBox Caption", WS_CHILD | WS_VISIBLE | BS_CHECKBOX, 0,0,150,20,hWnd,(HMENU)ID_CHECKBOX1, hInstance, NULL);
and it shows up on a grey background and font color is set to black. I can't change neither the color of a font nor the background.
Are colors set when the object is created or it's done separately? I've tried lots of things, even change the SysColors but still no luck. The solution is probably very simple, but I can't figure it so far.




Reply With Quote