Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

calling invalidate

Posted on 2000-03-23
3
Medium Priority
?
320 Views
Last Modified: 2013-11-20
I have made a sdi application (in vc60) and I have created a new class derived from CDialog.
From that class I have to refresh the sdi so I have to call OnDraw() function or something
like that. How Can I do this?
tahnx.
0
Comment
Question by:pelau
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
MDarling earned 150 total points
ID: 2648809
AfxGetMainWnd()->Invalidate();

should do the trick.
regards,
Mike.
0
 
LVL 3

Expert Comment

by:MDarling
ID: 2649177
why a B grade?
you didn't ask for further info.

anyway,

you could also use GetParent()->Invalidate();

regards,
Mike.
0
 

Author Comment

by:pelau
ID: 2649451
i'm sorry, must be becouse I was in a hurry...
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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.
Screencast - Getting to Know the Pipeline
Suggested Courses

824 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