Solved

calling invalidate

Posted on 2000-03-23
3
298 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 50 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

Technology Partners: 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

Suggested Solutions

Title # Comments Views Activity
not able to insert into temp table 68 174
either24  challenge 19 105
Line meaning 9 90
scoreUp challenge 14 69
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

749 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