textwdlg.h

来自「VC做的矢量画图程序!」· C头文件 代码 · 共 95 行

H
95
字号
#if !defined(AFX_TEXTWRITEDLG_H__CDB83382_8B3E_11D2_AE7B_444553540000__INCLUDED_)
#define AFX_TEXTWRITEDLG_H__CDB83382_8B3E_11D2_AE7B_444553540000__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// TextWriteDlg dialog
class CDrawView;
class TextWriteDlg : public CDialog		//管理标注文本输入对话框的对话框类
{
// Construction
public:
	BOOL IsOpen();
	BOOL IsVisible();
	TextWriteDlg(CWnd* pParent = NULL);   // standard constructor
	TextWriteDlg(CWnd* pParent,CString Text,float FontHeight,float FontWide,float Angle1,float Angle2,float FontBetween);
	float	m_FontHeight;
	float	m_FontWide;
	float	m_Angle1;
	float	m_Angle2;
	float	m_FontBetween;
	CDrawView *m_pView;
// Dialog Data
	//{{AFX_DATA(TextWriteDlg)
	enum { IDD = ID_WRITE_TEXT };
	CString	m_Text;
	//}}AFX_DATA

	void Init(CString Text,float FontHeight,float FontWide,float Angle1,float Angle2,float FontBetween);
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(TextWriteDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(TextWriteDlg)
	afx_msg void OnTextFont();
	afx_msg void OnChangeText();
	virtual void OnOK();
	virtual void OnCancel();
	virtual BOOL OnInitDialog();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////
// TextFontDlg dialog

class TextFontDlg : public CDialog		//管理字体参数设置对话框的对话框类
{
// Construction
public:
	TextFontDlg(CWnd* pParent = NULL);   // standard constructor
	TextFontDlg(float FontHeight,float FontWide,float Angle1,float Angle2,float FontBetween,CWnd* pParent = NULL);
// Dialog Data
	//{{AFX_DATA(TextFontDlg)
	enum { IDD = ID_TEXT_FONT };
	float	m_FontHeight;
	float	m_FontWide;
	float	m_Angle1;
	float	m_Angle2;
	float	m_FontBetween;
	//}}AFX_DATA


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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(TextFontDlg)
		// NOTE: the ClassWizard will add member functions here
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_TEXTWRITEDLG_H__CDB83382_8B3E_11D2_AE7B_444553540000__INCLUDED_)

⌨️ 快捷键说明

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