
I have created the above simple GUI in c++. I would like the static text control background to be same as the main window (which is white) or how can i make the main window background (hbrBackground) to be the same color as the background in the static text control?
Many thanks!
You can set the background of the static control by responding to
WM_CTLCOLORSTATIC.You can change the background color of your window by responding to
WM_ERASEBKGNDand calling (for one possibility)FillRect.