Go4Expert (http://www.go4expert.com/)
-   MFC (http://www.go4expert.com/forums/mfc/)
-   -   [MFC] Draw a circle into CSatic (http://www.go4expert.com/forums/mfc-draw-circle-csatic-t10973/)

blood hazard 1Jun2008 04:52

[MFC] Draw a circle into CSatic
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. :cryin:

madlex 7Jun2008 20:39

Re: [MFC] Draw a circle into CSatic
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).


All times are GMT +5.5. The time now is 01:58.