You have to handle this as part of the WM_CTLCOLORSTATIC message.
In the WM_COMMAND handler set a flag and invalidate the control.
In the WM_CTLCOLORSTATIC handler check the flag and return the required brush.