Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 222
  • Last Modified:

calling invalidate

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
pelau
Asked:
pelau
1 Solution
 
migelCommented:
Hi!

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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now