//MainApp.h
class CMainAppApp : public CWinApp
{
public:
CMainAppApp();
// Overrides
public:
virtual BOOL InitInstance();
virtual BOOL ExitInstance();
// Implementation
DECLARE_MESSAGE_MAP()
public:
HANDLE m_hMutex; //定义互斥器
CApplication m_Application;
ULONG_PTR m_gdiplusToken;
};
extern CMainAppApp theApp;
应用程序的初始化流程
最新推荐文章于 2024-08-26 10:28:35 发布