Your program must have a Window Procedure. If you've created child window controls on your main program window, Windows (the Operating System) will send WM_CTLCOLORSTATIC messages to the parent window's Window Procedure. Here is what MSDN says (just as tath told you to look up)..
A static control, or an edit control that is read-only or disabled, sends the WM_CTLCOLORSTATIC message to its parent window when the control is about to be drawn. By responding to this message, the parent window can use the specified device context handle to set the text and background colors of the static control. WM_CTLCOLORSTATIC hdcStatic = (HDC) wParam; // handle to display context hwndStatic = (HWND) lParam; // handle to static control Parameters hdcStatic Value of wParam. Handle to the device context for the static control window. hwndStatic Value of lParam. Handle to the static control. |
Change Background Color To Default
How To Change Background Color In Dev C++
Fathom mono vst download. I tried textbackground and textcolor they didn't work, searched the forum, nothing so, anyone know how to change colors, thankx. Home » C programming » conio.h » textbackground in C. https://powerfulhardware130.weebly.com/blog/fl-studio-massive-vst-plugin-download. Function textbackground is used to change current background color in text mode. See available colors.
You need to handle the WM_CTLCOLORSTATIC message. In doing that you create an HBRUSH of the color you want to color the background of the control. That HBRUSH gets returned by the Window Procedure. As Windows messages go, its a bit unusual. That's why I said its a bit tricky and involved.