|
楼主 |
发表于 2020-9-27 11:45:01
|
显示全部楼层
CMDIFrameWnd *pMain=(CMDIFrameWnd *)AfxGetApp()->m_pMainWnd
CMDIChildWnd *pChild=(CMDIChildWnd *)pMain->GetActiveFrame
CMyView *pView=(CMyView *)pChild->GetActiveView();
m_draw=AfxBeginThread(DrawGraph,(void *)pView,THREAD_PRIORITY_BELOW_NORMAL,\
0,CREATE_SUSPENDED);
UINT DrawGraph(LPVOID lpV)
{
CMyView *pDraw=(CMyView *)lpV;
......
......
return 0;
}
然后我这样是不是就得到view类指针了?再调用view类成员变量和成员函数行吗? |
|