How to get View object from App
-
Dear all, I writting an application using MFC. Now I need to access to the View object from the App class. Could you please tell me how. Thanks a lot in advance. -Kien Bui
-
Dear all, I writting an application using MFC. Now I need to access to the View object from the App class. Could you please tell me how. Thanks a lot in advance. -Kien Bui
In SDI app:
((CFrameWnd*)AfxGetMainWnd())->GetActiveView()
In MDI app:((CMDIFrameWnd*)AfxGetMainWnd())->GetActiveFrame()->GetActiveView()
Robert-Antonio "Love without sex is like a fish without antlers" -
In SDI app:
((CFrameWnd*)AfxGetMainWnd())->GetActiveView()
In MDI app:((CMDIFrameWnd*)AfxGetMainWnd())->GetActiveFrame()->GetActiveView()
Robert-Antonio "Love without sex is like a fish without antlers"Thank you very much! -Kien Bui