1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Mouse move

Discussion in 'MFC' started by sampathkambar, Apr 23, 2008.

  1. sampathkambar

    sampathkambar New Member

    Joined:
    Jan 25, 2008
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    0
    Hi,

    I hav created a dialog based application,which contains numerous owner draw controls( Buttons).Now i want them to be glowing when i move my mouse over those buttons.For example in media players.

    Kindly help.

    Rgds,
    Sampath
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,285
    Likes Received:
    364
    Trophy Points:
    83
    Each control should have some option in the Paint method of there own to support such a glow method
     
  3. sampathkambar

    sampathkambar New Member

    Joined:
    Jan 25, 2008
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    0
    I am not getting any idea.
    I am using OnDrawItem() in which i am loading bitmaps onto those controls.
    Usually what method developers use to have such effect??


    Rgds,
    Sampath
     
  4. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,285
    Likes Received:
    364
    Trophy Points:
    83
    You don't need to load the images each time you paint. When the control is created you can load the items into a member variable and draw accordingly in the OnDrawItem function
     

Share This Page