singleton.h

来自「C++、MFC源代码Singleton_demo」· C头文件 代码 · 共 50 行

H
50
字号
// Singleton.h : main header file for the SINGLETON application
//

// This file is part of Singleton application to demonstrate the concept of Singleton classes.
// This file is generated by AppWizard and is provided "as is" with no expressed or 
// implied warranty.

#ifndef __AFXWIN_H__
	#error include 'stdafx.h' before including this file for PCH
#endif

#include "resource.h"       // main symbols
#include "MsgHndlr.h"

/////////////////////////////////////////////////////////////////////////////
// CSingletonApp:
// See Singleton.cpp for the implementation of this class
//

class CSingletonApp : public CWinApp
{
public:
	CSingletonApp();
	~CSingletonApp();

// Attributes
public:
	CMsgHndlr			* m_pMsgHndlr;
	CString				m_csHndlrType;

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSingletonApp)
	public:
	virtual BOOL InitInstance();
	//}}AFX_VIRTUAL

// Implementation

	//{{AFX_MSG(CSingletonApp)
	afx_msg void OnAppAbout();
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};


/////////////////////////////////////////////////////////////////////////////

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?