Hi, I have an SDI that spins off a thread. How can I get access to the window (GetMainWnd) and also pass variables from my CWinApp derived class to the thread ? Thanks !!
Hi, I have an SDI that spins off a thread. How can I get access to the window (GetMainWnd) and also pass variables from my CWinApp derived class to the thread ? Thanks !!
pMyApp = (CMyWinApp*)AfxGetApp(); and there is also pMyWnd = (CMyWnd*)AfxGetMainWnd(); Or just keep it global or "delivere" it into as function parameter.