
how do I change the color of CButton???
You need to handle the WM_CTLCOLOR message. In
MFC, class wizard will create
a OnCtlColor function. It will pass the CWnd pointer for the button.
Remember, it may be a temporary CWnd object, so you need to check the
control ID to make sure it's the button you want to color. If it is, then
return an HBRUSH with the color you want to use to paint the control.
Pete
Quote:
> Hi NG
> I'm supposed to change the color of a button... But I cant' make it
work....
> thnks for any suggestions....