-
February 15th, 2002, 02:06 PM
#1
Invalidate MDI window
Im trying to get a MDI child window to redraw itself after changing some colour options in my app. I have tried:
AfxGetMainWnd()->RedrawWindow();
and
AfxGetMainWnd()->Invalidate();
but the MDI window isnt redrawn, it just gets update bit by bit by scrolling the window etc. How can i get the MDI window to complete redraw itself (its based on a CListView btw).
Thanks,
Andy
-
February 15th, 2002, 02:45 PM
#2
Re: Invalidate MDI window
Call Invalidate() followed by UpdateWindow()
Happy Coding!!!
Sanjay
-
February 15th, 2002, 02:48 PM
#3
Re: Invalidate MDI window
Looks like im going to have to response to my own post here!!!
CMainFrame *pMainFrame = (CMainFrame *)AfxGetMainWnd();
pMainFrame->MDIGetActive()->Invalidate();
Only thing is, this only updates the active MDI view, not the others...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|