how to get HWNDs of all view displayed? |
Post Reply |
Author | |
freehawk
Groupie Joined: 22 April 2004 Status: Offline Points: 95 |
Post Options
Thanks(0)
Posted: 05 July 2004 at 1:35am |
Hello I want to get HWNDs of all view displayed in the Tabbed MDI. Please help me how to do? Thank you. -Freehawk
|
|
brucesinner
Newbie Joined: 19 July 2004 Status: Offline Points: 3 |
Post Options
Thanks(0)
|
You must get a pointer to your main app and then get a pointer to your DocTemplate.
This code below do something like this: POSITION viewpos; POSITION pos = m_pDocTemplate->GetFirstDocPosition(); while (pos != NULL) { CDocument *pDoc = m_pDocTemplate->GetNextDoc(pos); viewpos = pDoc->GetFirstViewPosition(); CMDIView* tmpView = (CMDIView *) pDoc->GetNextView(viewpos); tmpView->Invalidate(TRUE); } This code repaints all views in a MDI app. Hope this helps, Bruce Sinner |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |