⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 formatbar.h

📁 本文件包包含了大量用VC++开发的应用程序界面
💻 H
字号:
#if !defined(AFX_FORMATBAR_H__C33E3E7E_49FA_11D4_85C6_00A0CC253EAC__INCLUDED_)
#define AFX_FORMATBAR_H__C33E3E7E_49FA_11D4_85C6_00A0CC253EAC__INCLUDED_

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

#include <afxtempl.h>

////////////////////////////////////////////////////////////
// CFormatBar window

class CFormatBar : public CToolBar
{
// Construction
public:
	CFormatBar();

// Attributes
public:
	class CFontData
	{
	public:
		CFontData () {
						m_strName = _T("");
						m_nIcon = 0;
					 }
		~CFontData () { }
		CString m_strName;
		int 	m_nIcon;
	};

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CFormatBar)
	//}}AFX_VIRTUAL

// Implementation
public:
	void SetPointSelection (int nPoints);
	void SetFontSelection (CString &strFontName);
	void GetSizeSelection (int &nSize);
	void GetFontSelection (CString &strFont);
	virtual ~CFormatBar();

	// Generated message map functions
protected:
	static int CALLBACK AddFontName (ENUMLOGFONT *lpelfe,
							   NEWTEXTMETRIC *lpntme,
							   int FontType, LPARAM lParam);
	//{{AFX_MSG(CFormatBar)
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	//}}AFX_MSG

	CComboBoxEx m_FontList;
	CComboBox	m_PointSize;
	CFont		m_Font;
	CImageList	m_Images;

	CList <CFontData, CFontData&> m_FontData;

	DECLARE_MESSAGE_MAP()
};

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

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

#endif // !defined(AFX_FORMATBAR_H__C33E3E7E_49FA_11D4_85C6_00A0CC253EAC__INCLUDED_)

⌨️ 快捷键说明

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