Fill Color in a static control at runtime
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
I want to fill a chosen color from the color palette in a static control at runtime.How can i do it?
-
I want to fill a chosen color from the color palette in a static control at runtime.How can i do it?
Create a custom derived class of any control and handle the WM_ERASEBACKGROUND in that class.create a solid brush of required color and paint the background(Note do it after calling base classes OnEraseBachGrnd).