texteditdialog.h

来自「VC++模态和非模态对话框的使用.看看怎么样?」· C头文件 代码 · 共 73 行

H
73
字号
//{{AFX_INCLUDES()

//}}AFX_INCLUDES
#if !defined(AFX_TEXTEDITDIALOG_H__F5DFEFB6_6A1B_4D05_ADE9_2D5B2078FD65__INCLUDED_)
#define AFX_TEXTEDITDIALOG_H__F5DFEFB6_6A1B_4D05_ADE9_2D5B2078FD65__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CTextEditDialog dialog

class CTextEditDialog : public CDialog
{
// Construction
public:
	CString temp;
	CFont fontText;          //定义字体实例fontText
	CTextEditDialog(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CTextEditDialog)
	enum { IDD = IDD_TEXTEDIT_DIALOG };
	CSpinButtonCtrl	m_RED;
	CSpinButtonCtrl	m_GREEN;
	CSpinButtonCtrl	m_BLUE;
	CEdit	m_TextFONT;
	CString	m_TextBoxEdit;
	BOOL	m_CT;
	BOOL	m_XHX;
	BOOL	m_XT;
	int		m_BLUE_FONT;
	int		m_GREEN_FONT;
	int		m_RED_FONT;

	//}}AFX_DATA


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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CTextEditDialog)
	virtual BOOL OnInitDialog();
	afx_msg void OnHtRadio();
	afx_msg void OnLsRadio();
	afx_msg void OnYyRadio();
	afx_msg void OnCtCheck();
	afx_msg void OnXtCheck();
	afx_msg void OnXhxCheck();
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	afx_msg void OnChangeBlueEdit();
	afx_msg void OnChangeGreenEdit();
	afx_msg void OnChangeRedEdit();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_TEXTEDITDIALOG_H__F5DFEFB6_6A1B_4D05_ADE9_2D5B2078FD65__INCLUDED_)

⌨️ 快捷键说明

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