1 CWinThread*
AFXAPI AfxGetThread()
2
{
3
//
check for current thread in module thread state
4 AFX_MODULE_THREAD_STATE* pState =
AfxGetModuleThreadState();
5 CWinThread* pThread = pState->
m_pCurrentWinThread;
6
7
//
if no CWinThread for the module, then use the global app
AfxGetThread和AfxGetApp的不同
最新推荐文章于 2022-04-15 18:42:54 发布