How change window Backgound Color when press a Button when using "ResEdit Resource Editor" to design?
bauss
jj_1337 at live.dk
Thu Jan 30 04:29:42 UTC 2020
On Thursday, 30 January 2020 at 03:49:29 UTC, Marcone wrote:
> I created a GUI using "ResEdit Resource Editor" and embeded to
> Dlang using this code above. Now I want to change the window
> Backgound Color when press a Button. How can I make it?
>
>
You need to handle WM_ERASEBKGND
And then you can set it using CreateSolidBrush and
SetClassLongPtr with GCLP_HBRBACKGROUND
More information about the Digitalmars-d-learn
mailing list