|
-
April 23rd, 2008, 06:56 AM
#4
Re: How to get a View handle?
Hello,
There are many methods to do this.
Andreas Masur, in his FAQ MFC Doc/View: How to obtain a pointer to various objects gives a good compilation on how to get various objects from any part of the application. MSDN also gives good advice to get document and view from any where in the application in their article How To Get Current CDocument or CView from Anywhere. Another method is to create a variable of application class and initialise the variable with the view / document pointer in the respective constructor.
Regards,
Pravin.
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
|