Re: How do I change the color of a button in a dialog?



"Dov Aharonson" <dov@xxxxxxxxxxx> wrote in message
news:OXrzKo6GGHA.312@xxxxxxxxxxxxxxxxxxxxxxx
>I need to change the color of a button in a dialog box in runtime as a
>result of user interaction with the program.
>
> Help is greatly appreciated

Mark the button as owner drawn and respond to the message WM_CTLCOLORBTN

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/commctls/buttons/buttonreference/buttonmessages/wm_ctlcolorbtn.asp

Regards,
Will


.


Quantcast