fontodlg.h

来自「为嵌入式软件开发中用到的字体点阵所做的windows任意字体/任意大小取点阵工具」· C头文件 代码 · 共 70 行

H
70
字号
// fontoDlg.h : header file
//

#if !defined(AFX_FONTODLG_H__CACC2408_F7AB_4026_975F_F8BBCF60C060__INCLUDED_)
#define AFX_FONTODLG_H__CACC2408_F7AB_4026_975F_F8BBCF60C060__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CFontoDlg dialog

class CFontoDlg : public CDialog
{
// Construction
public:
	int m_nActualWidth;
	int m_nBytesPerLine;
	unsigned char CharBitmap[80][160];
	CBrush mHollowBrush;
	int DrawFont_ZoomIn(CDC *pDC);
	int DrawFontView(CDC *pDC);
	LOGFONT m_lfFont;
	CFontoDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CFontoDlg)
	enum { IDD = IDD_FONTO_DIALOG };
	CString	m_sHZCode;
	int		m_nWidth;
	int		m_nHeight;
	CString	m_sOutputCode;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CFontoDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CFontoDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	afx_msg void OnChangeEditHz();
	virtual void OnOK();
	afx_msg void OnButtonSelfont();
	afx_msg void OnChangeEDITWidth();
	afx_msg void OnChangeEDITHeight();
	afx_msg void OnButtonGenall();
	afx_msg void OnButton_32x24_all();
	afx_msg void OnButton_ASC_16x24_all();
	afx_msg void OnButton_ASC_16x16_All_CCode();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_FONTODLG_H__CACC2408_F7AB_4026_975F_F8BBCF60C060__INCLUDED_)

⌨️ 快捷键说明

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