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
Printable View
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
See AfxGetMainWnd().
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
Code:CMainFrame* pFrame = static_cast<CMainFrame*>(AfxGetMainWnd());