Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
ColorSetDlg.h
Package: 44757463.rar [view]
Upload User: lj3531212
Upload Date: 2007-06-18
Package Size: 346k
Code Size: 3k
Category:
Graph Drawing
Development Platform:
Visual C++
- #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_)