www.pudn.com > 44757463.rar > ColorSetDlg.h
#if !defined(AFX_COLORSETDLG_H__DADB80A7_939D_4EB7_A786_5373916544EB__INCLUDED_)
#define AFX_COLORSETDLG_H__DADB80A7_939D_4EB7_A786_5373916544EB__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ColorSetDlg.h : header file
//
#include "GraphDefines.h"
/////////////////////////////////////////////////////////////////////////////
// CColorSetDlg dialog
class CColorSetDlg : public CDialog
{
// Construction
public:
CColorSetDlg(int nType=0,CWnd* pParent = NULL); // standard constructor
public:
//attributes
int m_nColorType;
//0-------line color
//1-------Fill color
int m_nNumPatterns ;
int m_nNumColumns ;
int m_nMargin ;
int m_nBoxSize ;
int m_nCurrent ;
int m_nSelect ;
int m_nColorOther ;
int m_nColorAuto;
CRect m_OtherColorRect ;
CRect m_AutoSetRect;
CRect m_AutoColorRect;
COLORREF m_clrArray[40];
CWnd* m_pWndParent;
public:
//operations
int GetRow(int i);
int GetColumn(int i);
BOOL GetCellRect(int i,CRect* pRect);
COLORREF GetColor(int i);
void draw_cell(CDC* pDC,int i);
//下面三个函数用来输入/输出颜色
COLORREF GetColor();
void SetColor(COLORREF color);
void InitColor(COLORREF color);
COLORREF GetInitColor();
//
void SetLeftTopPt(CPoint point);
void Init();
// Dialog Data
//{{AFX_DATA(CColorSetDlg)
enum { IDD = IDD_COLOR_SET };
int m_nColor_B;
int m_nColor_G;
int m_nColor_R;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CColorSetDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CColorSetDlg)
afx_msg void OnPaint();
virtual BOOL OnInitDialog();
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnKillFocus(CWnd* pNewWnd);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_COLORSETDLG_H__DADB80A7_939D_4EB7_A786_5373916544EB__INCLUDED_)