1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

[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