Solved

calling invalidate

Posted on 2000-03-23
2
176 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Doc'in system (example?) BA 7 107
post4 challenge 28 99
zeroFront challenge 7 96
Work with App store 7 51
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

786 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