怎么样才能获取View类的窗口句柄??

如题
2025-05-16 18:30:00
推荐回答(2个)
回答(1):

CMainFrame *pMain=(CMainFrame *)AfxGetApp()->m_pMainWnd;
CyouView *pView=(CyouView *)pMain->GetActiveView();

回答(2):

在view里面写this不就是了吗

frame的就是GetParent(this)