Click to See Complete Forum and Search --> : Button Colour


Simon_Turner
July 22nd, 2003, 03:59 AM
Hi

Anyone know how to set the background and forground colours of a button when using the winAPI?

Cheers

Mike Harnad
July 22nd, 2003, 08:32 AM
Respond to the WM_CTLCOLOR message.

filthy_mcnasty
July 22nd, 2003, 04:44 PM
wm_ctlcolor is an mfc thing.

to do it with the api itself you need to make it owner drawn and manually paint it how you want.