📄 fontviewdlg.h
字号:
// FontViewDlg.h : header file
//
#if !defined(AFX_FONTVIEWDLG_H__172743AE_30C0_11D4_AE54_006008AADC5D__INCLUDED_)
#define AFX_FONTVIEWDLG_H__172743AE_30C0_11D4_AE54_006008AADC5D__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "StaticEx.h"
#include "EditEx.h"
#include "FontWindow.h"
#include <afxtempl.h>
class CFontViewDlg;
class CEditChar;
/////////////////////////////////////////////////////////////////////////////
// CFontViewDlg dialog
class CFontViewDlg : public CDialog
{
// Construction
public:
virtual void SetCurrentSel (UINT sel);
virtual void SetMouseChar (UINT ch);
virtual void SetFont (CString& strFont);
CFontViewDlg(CWnd* pParent = NULL); // standard constructor
~CFontViewDlg ();
class CFontData
{
public:
CFontData () {
m_strName = _T("");
m_nIcon = 0;
}
~CFontData () { }
CString m_strName;
int m_nIcon;
};
// Dialog Data
//{{AFX_DATA(CFontViewDlg)
enum { IDD = IDD_FONTVIEW_DIALOG };
CStaticEx m_SampleText;
CComboBoxEx m_FontBox;
CFontWindow m_FontView;
CStaticEx m_MouseSelWin;
CString m_FontViewChar;
CString m_FontList;
CString m_MouseDecimal;
CString m_MouseHex;
CString m_MouseOctal;
CString m_AbcA;
CString m_AbcB;
CString m_AbcC;
CString m_AbcfA;
CString m_AbcfB;
CString m_AbcfC;
CString m_FloatWidth;
CString m_IntWidth;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CFontViewDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
static int CALLBACK AddFontName (ENUMLOGFONT *lpelfe, NEWTEXTMETRIC *lpntme, int FontType, LPARAM lParam);
// Generated message map functions
//{{AFX_MSG(CFontViewDlg)
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
virtual BOOL OnInitDialog();
afx_msg void OnSelchangeComboFonts();
afx_msg void OnGetdispinfoComboFonts(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnEditupdateComboFonts();
//}}AFX_MSG
afx_msg void OnUser (WPARAM wparam, LPARAM lparam);
CString m_strFont;
CFont m_fontMouse;
CFont m_fontSample;
CString m_Title;
char m_chCurrent;
CImageList m_pImages;
CBitmap m_bmpTT;
CBitmap m_bmpBitfont;
public:
friend CEditChar;
DECLARE_MESSAGE_MAP()
CList <CFontData, CFontData&> m_FontData;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_FONTVIEWDLG_H__172743AE_30C0_11D4_AE54_006008AADC5D__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -