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

📄 richeditdlg.h

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

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

#include	<afxtempl.h>

/////////////////////////////////////////////////////////////////////////////
// CRichEditDlg dialog

class CRichEditDlg : public CPropertyPage
{
	DECLARE_DYNCREATE(CRichEditDlg)

// Construction
public:
	CRichEditDlg();
	~CRichEditDlg();

	class CFontData
	{
	public:
		CFontData () {
						m_strName = _T("");
						m_nIcon = 0;
					 }
		~CFontData () { }
		CString	m_strName;
		int		m_nIcon;
	};

// Dialog Data
	//{{AFX_DATA(CRichEditDlg)
	enum { IDD = IDD_PROPPAGE_RICHEDITDLG };
	CButton	m_ctlParaIndentBullets;
	CComboBox	m_ctlPointBox;
	CComboBoxEx	m_ctlFontBox;
	CButton	m_ctlParaRight;
	CButton	m_ctlParaCenter;
	CButton	m_ctlParaLeft;
	CButton	m_ctlParaIndentMore;
	CButton	m_ctlParaIndentLess;
	CButton	m_ctlFormatUnderline;
	CButton	m_ctlFormatStrikeout;
	CButton	m_ctlFormatItalic;
	CButton	m_ctlFormatBold;
	CRichEditCtrl	m_RichSample;
	int		m_nFormatItalic;
	int		m_nFormatBold;
	int		m_nFormatStrikout;
	int		m_nFormatUnderline;
	int		m_nParaAlign;
	BOOL	m_nParaIndentBullets;
	//}}AFX_DATA

	COLORREF	m_clrBack;
	COLORREF	m_clrCustom[16];

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

	CHARFORMAT	m_CharFormat;

// Implementation
protected:
	CImageList m_imageFonts;
	static int CALLBACK AddFontName(ENUMLOGFONT *lpelfe, NEWTEXTMETRIC *lpntme, int FontType, LPARAM lParam);
	// Generated message map functions
	//{{AFX_MSG(CRichEditDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnRichsetcolor();
	afx_msg void OnPaint();
	afx_msg void OnSelchangeFontbox();
	afx_msg void OnSelchangePointbox();
	afx_msg void OnRichsettextcolor();
	afx_msg void OnFormatBold();
	afx_msg void OnFormatItalic();
	afx_msg void OnFormatStrikeout();
	afx_msg void OnFormatUnderline();
	afx_msg void OnParagraphleft();
	afx_msg void OnParagraphcenter();
	afx_msg void OnParagraphright();
	afx_msg void OnIndentless();
	afx_msg void OnIndentmore();
	afx_msg void OnIndentbullets();
	afx_msg void OnMsgfilterRichSample(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnGetdispinfoFontbox(NMHDR* pNMHDR, LRESULT* pResult);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

	CList <CFontData, CFontData&> m_FontData;

};

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

#endif // !defined(AFX_RICHEDITDLG_H__2C879A87_73E6_11D4_85D1_00A0CC253EAC__INCLUDED_)

⌨️ 快捷键说明

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