How to change button text color in NM_CUSTOMDRAW (Win32 API question)

Imperatorn johan_forsberg_86 at hotmail.com
Tue Mar 16 17:45:09 UTC 2021


On Tuesday, 16 March 2021 at 17:26:01 UTC, Vinod K Chandran wrote:
> Hi all,
> I am creating a Button class with Win32 API functions. So far 
> so good. I am using NM_CUSTOMDRAW message to change the back 
> color of my buttons. It's really easy to change the back color 
> in this way. But I can't change the text color of my button. 
> This is my pseudo code.
> ```
> uint setBtnBackColor( LPNMCUSTOMDRAW  lp) {
>
> [...]

Omg the pain. Are you forced to use raw win api for this?


More information about the Digitalmars-d-learn mailing list