📄 graphpa.h
字号:
#if !defined(AFX_XXCOLORSETDIALOG_H__8A98815C_D8BB_11D2_AE7B_444553540000__INCLUDED_)
#define AFX_XXCOLORSETDIALOG_H__8A98815C_D8BB_11D2_AE7B_444553540000__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// XxColorSetDialog.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// XxColorSetDialog dialog
class XxColorSetDialog : public CDialog //管理线型及颜色设置对话框的对话框类
{
// Construction
public:
XxColorSetDialog(CWnd* pParent = NULL); // standard constructor
XxColorSetDialog(short color1,short color2,short color3,short color4,short linetype,short linewide,CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(XxColorSetDialog)
enum { IDD = IDD_XXYS_SET };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(XxColorSetDialog)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual BOOL OnInitDialog();
//}}AFX_VIRTUAL
public:
int m_color1,m_color2,m_color3,m_color4,m_linetype,m_linewide;
private:
CScrollBar* bar1;
CRect r1;
void draw();
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(XxColorSetDialog)
afx_msg void OnOk();
afx_msg void CMOK(){OnOk();}
afx_msg void OnCancel();
afx_msg void CMCancel(){OnCancel();}
afx_msg void OnPaint(){draw();}
afx_msg void penColor(); //画笔颜色
afx_msg void backColor(); //屏幕底色
afx_msg void brushColor(); //填充颜色
afx_msg void betweenColor(); //虚线间隔颜色
afx_msg void LineTypeSet();
afx_msg void OnVScroll(UINT nSBCode,UINT nPos,CScrollBar *pScrollBar);
// NOTE: the ClassWizard will add member functions here
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
// ColorSet dialog
class ColorSetDialog : public CDialog //管理颜色管理对话框的对话框类
{
// Construction
public:
ColorSetDialog(CWnd* pParent = NULL); // standard constructor
ColorSetDialog(int ColorIndex,CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(ColorSetDilaog)
enum { IDD = IDD_COLOR_SET };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(ColorSetDilaog)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual BOOL OnInitDialog();
//}}AFX_VIRTUAL
protected:
void draw();
void draw1(int pb);
int widthAll; //显示颜色区的宽度
int heightAll; //显示颜色区的高度
int width; //每个显示方格的宽度
int height; //每个显示方格的高度
int k3,k4;
public:
int m_ColorIndex,m_ColorIndex1;
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(ColorSetDilaog)
afx_msg void OnOk();
afx_msg void OnCancel();
afx_msg void nrxg();
afx_msg void OnPaint(){draw();}
afx_msg void OnLButtonDown(UINT nFlags,CPoint point);
// NOTE: the ClassWizard will add member functions here
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
// LineSetDialog dialog
class LineSetDialog : public CDialog //管理线型设置对话框的对话框类
{
// Construction
public:
LineSetDialog(CWnd* pParent = NULL); // standard constructor
LineSetDialog(int LineType,CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(LineSetDialog)
enum { IDD = IDD_LINE_SET };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
public:
int m_LineType;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(LineSetDialog)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual BOOL OnInitDialog();
//}}AFX_VIRTUAL
// Implementation
protected:
void draw();
protected:
// Generated message map functions
//{{AFX_MSG(LineSetDialog)
afx_msg void OnOk();
afx_msg void CMOK(){OnOk();}
afx_msg void OnCancel();
afx_msg void CMCancel(){OnCancel();}
afx_msg void OnPaint(){draw();}
// NOTE: the ClassWizard will add member functions here
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
// LayerSetDialog dialog
class LayerSetDialog : public CDialog //管理图层管理对话框的对话框类
{
// Construction
public:
LayerSetDialog(CWnd* pParent = NULL); // standard constructor
LayerSetDialog(LayerStruct* LayerList,int nLayerNumb,int LayerIndex,CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(LayerSetDialog)
enum { IDD = IDD_LAYER_SET };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(LayerSetDialog)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual BOOL OnInitDialog();
//}}AFX_VIRTUAL
private:
CListBox *plist1;
CComboBox *pcom1;
LayerStruct *m_LayerList1,*p_LayerList;
void InitNamesLst();
// Implementation
public:
int m_nLayerNumb,m_LayerIndex; //图层的数目和当前层的序号
protected:
// Generated message map functions
//{{AFX_MSG(LayerSetDialog)
afx_msg void OnOk();
afx_msg void OnCancel();
afx_msg void nrzj();
afx_msg void nrxg();
afx_msg void nrcs1();
// 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_XXCOLORSETDIALOG_H__8A98815C_D8BB_11D2_AE7B_444553540000__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -