Hello world!
I am trying to change the text and background color of a STATIC control. As long as the controls is created as a child of the main window, the WM_CTLCOLORSTATIC message is sent correctly and the color is changed. If I change its parent (I create it as a child of another static) the WM_CTLCOLORSTATIC no longer receives its ID and the color doesn't change.
It seems like the WM_CTLCOLORSTATIC is sent only for the main window and its first level controls. I should also specify that the parent STATIC control does not contain text, it's just like a panel with a black border. What would you do to make this work? Thanks!
Only the parent window receives the notification. That is no secret as stated in MSDN. You can always subclass the static control that serves as parent.