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

📄 fontwindow.h

📁 这些源代码
💻 H
字号:
#if !defined(AFX_FONTWINDOW_H__82CC2274_3272_11D4_AE54_006008AADC5D__INCLUDED_)
#define AFX_FONTWINDOW_H__82CC2274_3272_11D4_AE54_006008AADC5D__INCLUDED_

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

#include	"StaticEx.h"

class CFontViewDlg;

/////////////////////////////////////////////////////////////////////////////
// CFontWindow window

class CFontWindow : public CStaticEx
{
// Construction
public:
	CFontWindow();

// Attributes
public:

// Operations
public:

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

// Implementation
public:
	virtual void HighlightSelection(CWindowDC* = NULL);
	virtual void SetCharSelection (UINT sel);
	void SetFont (CString & FontName);
	virtual ~CFontWindow();

	// Generated message map functions
protected:
	//{{AFX_MSG(CFontWindow)
	afx_msg void OnPaint();
	//}}AFX_MSG
public:
	void SetWindowRect (RECT & rcClient, RECT & rcFontView);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);

	CFont	m_Font;
	UINT	m_uiSelection;
	UINT	m_uiMouseSelection;

	RECT	m_rcClient;
	RECT	m_rcOriginal;
	RECT	m_rcPosition;
	RECT	m_rcSelect;
	int		m_nWidths[256];
	float	m_fWidths[256];
	ABC		m_abc[256];
	ABCFLOAT m_abcf[256];
	TEXTMETRIC	m_TM;

friend CFontViewDlg;

	DECLARE_MESSAGE_MAP()
};

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

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

#endif // !defined(AFX_FONTWINDOW_H__82CC2274_3272_11D4_AE54_006008AADC5D__INCLUDED_)

⌨️ 快捷键说明

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