I am creating a basic GUI with the Windows API and I have run into an issue. It starts with a main window that opens with a custom background color I set (RGB(230,230
(RGB(230,230
I think there is a permanent way to do it.
Just after you create the label,use GetDC() function to get the Device Context. Then use:
SetTextColor(hdcStatic, RGB(0,0,0)); SetBkColor(hdcStatic, RGB(230,230,230)); // Code Copied from the above answer by cpx.
And it should do .