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

📄 fontodlg.h

📁 为嵌入式软件开发中用到的字体点阵所做的windows任意字体/任意大小取点阵工具, 基于对话框,可选字体和字体大小,可预览点阵效果,生成C语言的字体点阵数据文件,
💻 H
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -