Solved

calling invalidate

Posted on 2000-03-23
2
170 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 Comments
 
LVL 12

Accepted Solution

by:
migel earned 50 total points
ID: 2648753
Hi!

{
CFrameWnd* pWnd = (CFrameWnd*)AfxGetMainWnd();
ASSERT(pWnd->IsKindOf(RUNTIME_CLASS(CFrameWnd));
CView* pView = pWnd->GetActiveView();
if (pView)
{
pView->Invalidate();
pView->UpdateWindow();
}
}
0
 

Author Comment

by:pelau
ID: 2648810
thanx migel
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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…
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.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

705 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

16 Experts available now in Live!

Get 1:1 Help Now