rectset.h

来自「数据结构求最短路径vc++ 实现手动作图」· C头文件 代码 · 共 73 行

H
73
字号
#if !defined(AFX_RECTSET_H__39618D9B_D071_4194_9A21_74C4C3C3CA6A__INCLUDED_)
#define AFX_RECTSET_H__39618D9B_D071_4194_9A21_74C4C3C3CA6A__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CRectSet dialog


#define  WM_CHANGE_RECTSHX       (WM_USER +103)   //改变了矩形的属性的消息

//#define WM_CHANGE_SIDECOLOR      (WM_USER +104)



class CRectSet : public CDialog
{
// Construction
public:
	CRectSet(CWnd* pParent = NULL);   // standard constructor

     CWnd *m_pParentWnd;   //父窗口指针

	//填充颜色,边框颜色,字体属性
    COLORREF m_incolor;
    COLORREF m_sidecolor;
    COLORREF m_textcolor;
	LOGFONT  m_text;   //字体式样字体大小
// Dialog Data
	//{{AFX_DATA(CRectSet)
	enum { IDD = IDD_RECT };
	CButton	m_over;
	CButton	m_begin;
	CString	m_name;
	int		m_high;
	int		m_width;
	long	m_zhi;
	//}}AFX_DATA
public:
	int GetIndex();
	void SetIndex(int i);
        void updaterectdata(COLORREF incolor,COLORREF sidecolor,COLORREF textcolor,LOGFONT  text,long	zhi,int	high,int width,CString name);
// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CRectSet)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	int objectindex;
	// Generated message map functions
	//{{AFX_MSG(CRectSet)
	afx_msg void OnButton1incolor();
	afx_msg void OnButton2sidecolor();
	afx_msg void OnButton3font();
	virtual void OnOK();
	virtual BOOL OnInitDialog();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_RECTSET_H__39618D9B_D071_4194_9A21_74C4C3C3CA6A__INCLUDED_)

⌨️ 快捷键说明

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