I found the problem! It's because I WAS using 'WS_EX_CLIENTEDGE'. I guess that it makes a special border around the control.
I've also changed some code so that the background is the button face ( I used GetSysColor() )
Printable View
I found the problem! It's because I WAS using 'WS_EX_CLIENTEDGE'. I guess that it makes a special border around the control.
I've also changed some code so that the background is the button face ( I used GetSysColor() )
No need to do that:Quote:
I've also changed some code so that the background is the button face ( I used GetSysColor() )
That code specifies the button face color, without calling an extra function. You can do other colors that way too. Just search your header include files for COLOR_BTNFACE, and you'll all the other constants next to it. Remember to always +1.Code:wcx.hbrBackground=(HBRUSH)(COLOR_BTNFACE+1);