|
-
July 28th, 2009, 05:16 AM
#1
How to get the MainFrame object in Document
hai,
I want to use the MainFrame object in Document class with out using the (new operator). Please help me to solve this problem.
Thanks in advance.
sundar
-
July 28th, 2009, 05:22 AM
#2
Re: How to get the MainFrame object in Document
-
July 28th, 2009, 05:48 AM
#3
Re: How to get the MainFrame object in Document
hai,
The AfxGetMainWnd() function returns the CWnd object..How i can match this to get the MainFrame object.please tell the procedure to get the object.
Thanks in advance.
sundar
-
July 28th, 2009, 05:50 AM
#4
Re: How to get the MainFrame object in Document
Code:
CMainFrame* pFrame = static_cast<CMainFrame*>(AfxGetMainWnd());
Elrond
A chess genius is a human being who focuses vast, little-understood mental gifts and labors on an ultimately trivial human enterprise.
-- George Steiner
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
|