font.h

来自「miXo is a buzz machine (www.buzzmachines」· C头文件 代码 · 共 46 行

H
46
字号
// Font.h: interface for the CFont class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_FONT_H__FDFF0888_4328_11D5_8DCF_BEE2EFB457B2__INCLUDED_)
#define AFX_FONT_H__FDFF0888_4328_11D5_8DCF_BEE2EFB457B2__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
#include <string>
using namespace std;
class CAbFont  
{
	HFONT m_hFont;
	int nHeight; 
	int nWidth; 
	int nEscapement; 
	int nOrientation; 
	int fnWeight; 
	DWORD fdwItalic; 
	DWORD fdwUnderline; 
	DWORD fdwStrikeOut; 
	DWORD fdwCharSet; 
	DWORD fdwOutputPrecision; 
	DWORD fdwClipPrecision; 
	DWORD fdwQuality; 
	DWORD fdwPitchAndFamily; 
	LPCTSTR lpszFace;
	unsigned m_uRefs;
	string m_strFont;
public:
	CAbFont();
	virtual ~CAbFont();
	void Create();
	void Delete();
	HFONT GetHandle() { return m_hFont; }
	void SetHt(int,HDC);
	void SetFontName(const char *sz) { m_strFont=sz; }
	const char *GetFontName() const { return m_strFont.c_str(); }
	int GetHt() const { return nHeight; }

};

#endif // !defined(AFX_FONT_H__FDFF0888_4328_11D5_8DCF_BEE2EFB457B2__INCLUDED_)

⌨️ 快捷键说明

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