WEB开发网
开发学院软件开发VC MFC教程(9)-- MFC的进程和线程(1) 阅读

MFC教程(9)-- MFC的进程和线程(1)

 2010-03-25 20:35:08 来源:WEB开发网   
核心提示:AFX_MODULE_THREAD_STATE该类定义如下:// AFX_MODULE_THREAD_STATE (local to thread *and* module)class AFX_MODULE_THREAD_STATE : public CNoTrackObject{public:AFX_MODULE_T

AFX_MODULE_THREAD_STATE

该类定义如下:

// AFX_MODULE_THREAD_STATE (local to thread *and* module)

class AFX_MODULE_THREAD_STATE : public CNoTrackObject

{

public:

AFX_MODULE_THREAD_STATE();

virtual ~AFX_MODULE_THREAD_STATE();

// current CWinThread pointer

CWinThread* m_pCurrentWinThread;

// list of CFrameWnd objects for thread

CTypedSimpleList<CFrameWnd*> m_frameList;

// temporary/permanent map state

DWORD m_nTempMapLock; // if not 0, temp maps locked

CHandleMap* m_pmapHWND;

CHandleMap* m_pmapHMENU;

CHandleMap* m_pmapHDC;

CHandleMap* m_pmapHGDIOBJ;

CHandleMap* m_pmapHimageLIST;

// thread-local MFC new handler (separate from C-runtime)

_PNH m_pfnNewHandler;

#ifndef _AFX_NO_SOCKET_SUPPORT

// WinSock specific thread state

HWND m_hSocketWindow;

CMapPtrToPtr m_mapSocketHandle;

CMapPtrToPtr m_mapDeadSockets;

CPtrList m_listSocketNotifications;

#endif

};

上一页  1 2 3 4 5 6 7 8 9 10  下一页

Tags:MFC 教程 MFC

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接