Solved

calling invalidate

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
windows 10 how make picture as desktop background 2 47
move a line in eclipse 3 60
Line meaning 9 76
Annoying "thing" blocks my view 4 50
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: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

707 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

15 Experts available now in Live!

Get 1:1 Help Now