How to dsiplay next image on dialog by using Direct Draw

Posted on 2004-11-05
Last Modified: 2013-11-20

I am displaying BMP on dialog window  by using DirectDraw. I am trying to show next image after i click the mouse. After i click the mouse next image is displaying, but it is on first image.  How can i remove the first image after the next image loads. First image i am calling in OnInitDialog() function. And the next images are calling in Mouse event finction.

Thanking you.

Question by:vihar123
    LVL 6

    Accepted Solution

    try calling Invalidate() before drawing new image in Moue click (which is ,may be OnLButtonDown)

    Author Comment

    Thank you for your reply. I tried with Invalidate() function, but there is no change. Please give me any other answer.


    Featured Post

    Training Course: Java/J2EE and SOA

    This course will cover both core and advanced Java concepts like Database connectivity, Threads, Exception Handling, Collections, JSP, Servlets, XMLHandling, and more. You'll also learn various Java frameworks like Hibernate and Spring.

    Join & Write a Comment

    This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
    Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
    This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now