[MFC] Draw a circle into CSatic

blood hazard's Avatar, Join Date: Jun 2008
Newbie Member
Hi All,

I have a prob and i could not resolve it. I have a Static activex and i wanna draw some circles into it, do somebody know how??

Thank You.
madlex's Avatar, Join Date: Jun 2008
Go4Expert Member
What do you understand by static activex?
If the activex is rendered windowless u just have to draw over the area the activex is in place.
If the activex is not windowless, and it's having its own window, subclass the speciefied window and try"overwriting" WM_PAINT,WM_ERASEBACKGROUND messages. However, it may not work efficient enought if the activex is calling its drawing procedures directly (without calling for InvalidateRect, RedrawWindow, etc. functions) as a response for some events (like clicking on it).

Cheers