How can I trigger the WM_CTLCOLORSTATIC message?
I am using WM_CTLCOLORSTATIC to change the color of a static control I have. The control is used as a color selector, so it changes color throughout the program. It says on MSDN that the WM_CTLCOLORxxxx is sent when the window is about to be drawn. Is there any way I can trigger this message. I have tried UpdateWindow(), but no luck. I currently have a method of triggering the message, but it involves
Code:
ShowWindow(hwnd, WM_HIDE);
ShowWindow(hwnd, WM_SHOW);
This produces an ugly flicker, especially on slower machines. Does anyone have any suggestions? Thanks.