|
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;
}
Then do I get the view class pointer like this? Can I call the view class member variables and member functions again? |
|