📄 formatbar.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();
class CFontData
{
public:
CFontData () {
m_strName = _T("");
m_nIcon = 0;
}
~CFontData () { }
CString m_strName;
int m_nIcon;
};
// Attributes
public:
// 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:
afx_msg void OnGetdispinfoFontBox(NMHDR* pNMHDR, LRESULT* pResult);
static int CALLBACK AddFontName (ENUMLOGFONT *lpelfe, NEWTEXTMETRIC *lpntme, int FontType, LPARAM lParam);
//{{AFX_MSG(CFormatBar)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
//}}AFX_MSG
// afx_msg void OnGetdispinfoFontBox(UINT nID, NMHDR* pNMHDR, LRESULT* pResult);
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 + -