Hi.
I'm using OnCtlColor function to change the background color of a text. I'm using SetBkColor for that, however the background is changing only for the text written, not the whole rect of the CStatic text window.
Any ideas?
Thanks.
Hi.
I'm using OnCtlColor function to change the background color of a text. I'm using SetBkColor for that, however the background is changing only for the text written, not the whole rect of the CStatic text window.
Any ideas?
Thanks.
Double check that your implementation of OnCtlColor is returning a handle to the brush you want to set the background colour.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.