[MFC] Draw a circle into CSatic

Discussion in 'MFC' started by blood hazard, Jun 1, 2008.

  1. blood hazard

    blood hazard New Member

    Joined:
    Jun 1, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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:
     
  2. madlex

    madlex New Member

    Joined:
    Jun 6, 2008
    Messages:
    12
    Likes Received:
    3
    Trophy Points:
    0
    Occupation:
    Technical Project Manager
    Location:
    Bucharest,RO
    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
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice