Solved

calling invalidate

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
iSeries FTP Exit Program 8 146
while loop over for loop 7 115
sumHeights2  challenge 7 114
JQuery serialize and unserialize 8 135
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

840 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