CMDIChildWnd* pActiveChild = ((CMainFrame*)AfxGetApp()->GetMainWnd())->MDIGetActive();和
CMainFrame *pFrm = (CMainFrame *)AfxGetApp()->GetMainWnd();
CMyView *pActiveView= (CMyView *)pFrm->GetActiveFrame()->GetActiveView();pActiveChild和pActiveView好像不同。
上面两者调用的区别是?
CMainFrame *pFrm = (CMainFrame *)AfxGetApp()->GetMainWnd();
CMyView *pActiveView= (CMyView *)pFrm->GetActiveFrame()->GetActiveView();pActiveChild和pActiveView好像不同。
上面两者调用的区别是?
解决方案 »
- VC中如何作函数曲线图?
- 各位大哥,我想学C++底层的东西,,哪本书比较好,能够透着讲解
- 如何在SDI,不同的VIEW中传递数据?
- 怎样将dialog这种resource和CLASS联系起来,我用classwizard老是报错,不能建立联系
- 如何在主程序中释放DLL中new的内存?
- 哪里有播放FLASH的控件?
- 请问在VC中如何使用诸如word,excel之类的进程外COM组件?
- locat你在吗?快来回答我的问题?
- 如何画饼图,我笨,我不知道,你呢?
- 请教!我怎么得到某目录下有哪些文件及文件夹,不用控件,要编程,就想远程控制和木马一样?请不吝赐教
- 重载OnVScroll的问题
- 关于对话框控件的问题!
Retrieves the current active MDI child window, along with a flag indicating whether the child window is maximized.CMDIChildWnd* MDIGetActive(
BOOL* pbMaximized = NULL
) const;
Parameter
pbMaximized
A pointer to a BOOL return value. Set to TRUE on return if the window is maximized; otherwise FALSE.
Return Value
A pointer to the active MDI child windowCall this member function to obtain a pointer to the active multiple document interface (MDI) child window of an MDI frame window.virtual CFrameWnd* GetActiveFrame( );
Return Value
A pointer to the active MDI child window. If the application is an SDI application, or the MDI frame window has no active document, the implicit this pointer will be returned.Call this member function to obtain a pointer to the active view (if any) attached to a frame window (CFrameWnd).CView* GetActiveView( ) const;
Return Value
A pointer to the current CView. If there is no current view, returns NULL.