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

how to draw moving object over bitmapped background in dialog

Discussion in 'MFC' started by khlauster, Jun 12, 2010.

  1. khlauster

    khlauster New Member

    Joined:
    Sep 26, 2006
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hi, experts!

    I need a working code sample with animated objects in dialog application:
    user clicks on button1 and object1(bitmap)1 moves to some point in dialog
    then user clicks on button 2 and other object2(bitmap2) moves to some point in dialog
    Both objects must remain independently on dialog’s background and not getting erased after dialog is dragged off screen or other drawings took a place in the same application
    VC 6.0

    Thank you for your help in advance
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,285
    Likes Received:
    364
    Trophy Points:
    83
    Draw them in Paint Method and it would be fine when dialog is dragged.
     

Share This Page