Re: How do I change the color of a button in a dialog?
- From: "William DePalo [MVP VC++]" <willd.no.spam@xxxxxxxx>
- Date: Tue, 17 Jan 2006 16:27:54 -0500
"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
.
- Follow-Ups:
- Re: How do I change the color of a button in a dialog?
- From: Dov Aharonson
- Re: How do I change the color of a button in a dialog?
- References:
- How do I change the color of a button in a dialog?
- From: Dov Aharonson
- How do I change the color of a button in a dialog?
- Prev by Date: How do I change the color of a button in a dialog?
- Next by Date: Re: size grip in dialog boxes
- Previous by thread: How do I change the color of a button in a dialog?
- Next by thread: Re: How do I change the color of a button in a dialog?
- Index(es):