fontcombo.h

来自「VC++编程百例」· C头文件 代码 · 共 59 行

H
59
字号
#if !defined(AFX_FONTCOMBO_H__EDD7C6CE_E81B_11D5_A550_5254AB4B870E__INCLUDED_)
#define AFX_FONTCOMBO_H__EDD7C6CE_E81B_11D5_A550_5254AB4B870E__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// FontCombo.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CFontCombo window

class CFontCombo : public CComboBox
{
// Construction
public:
	CFontCombo();

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CFontCombo)
	protected:
	virtual void PreSubclassWindow();
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CFontCombo();
	static int CALLBACK EnumFontFamiliesCallBack(
		ENUMLOGFONT *lpelfe,	
		NEWTEXTMETRIC *lpntme,	
		int FontType,	
		LPARAM lParam);


	// Generated message map functions
protected:
	//{{AFX_MSG(CFontCombo)
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
	CStringList m_FontList;
private:
	void ProcessFonts(void);
};

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

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_FONTCOMBO_H__EDD7C6CE_E81B_11D5_A550_5254AB4B870E__INCLUDED_)

⌨️ 快捷键说明

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