i'm trying to change the color of buttons, listboxes, edit controls, etc. i can change the colors of the listboxes and edit controls but it doesn't seem to be working correctly, and i can't seem to change the color of my button at all. here's my code for the listbox:
[global]
HBRUSH br = CreateSolidBrush(RGB(255,255,255));
case WM_CTLCOLORLISTBOX:
SetBkColor((HDC)wParam, RGB(0,74,128));
SetTextColor((HDC)wParam, RGB(255,255,255));
return ((LRESULT)br);
break;
the listbox shows up with white text, but the background of the box isn't totally colored dark blue, instead it looks like the text is "highlighted" with dark blue, but it's only like this is one of my listboxes. my other listbox has the LBS_EXTENDEDSEL style, and it is fully colored in. it's the same way when i use this code for edit controls also; the area behind the text is dark blue. am i doing something wrong?
any idea as to why i can't get my button to be a different color? is there some style that i need? i tried it with just the WS_CHILDWINDOW and WS_VISIBLE styles, then i added BS_PUSHBUTTON and BS_NOTIFY, but nothing changed.
extra info: i'm using Bloodshed's DevC++ compiler.
thanks for the help.
alandrums