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
ColorPicker.h
Package: GISCode.rar [view]
Upload User: juying163
Upload Date: 2014-09-24
Package Size: 5867k
Code Size: 2k
Category:
GIS program
Development Platform:
Visual C++
- ////////////////////////////////////////////////////////////////
- // ColorPicker.h : header file //
- // //
- // Copyright 2001 WangJun //
- // All Rights Reserved. //
- // //
- // Email: wangjun98@sohu.com //
- // URL: http://www.vckbase.com //
- // //
- // 1.0 2001/10/6 First release version. //
- // //
- ////////////////////////////////////////////////////////////////
- #if !defined(AFX_COLORPICKER_H__52F28BCF_DBD4_49A1_8293_1B7FBFB8735D__INCLUDED_)
- #define AFX_COLORPICKER_H__52F28BCF_DBD4_49A1_8293_1B7FBFB8735D__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // ColorPicker.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // CColorPicker window
- class CColorPicker : public CButton
- {
- // Construction
- public:
- CColorPicker();
- virtual ~CColorPicker();
- // Attributes
- public:
- // Operations
- public:
- void SetColor(COLORREF ref);
- void SetBuddy(HWND hWnd);
- COLORREF GetColor();
- void GetColor(CString& strColor);
- // CPoint m_OldPos;
- //CPoint m_CurrentPos;
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CColorPicker)
- public:
- virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
- protected:
- virtual LRESULT DefWindowProc(UINT message, WPARAM wParam, LPARAM lParam);
- //}}AFX_VIRTUAL
- // Implementation
- private:
- void DestroyPaletteWindow();
- BOOL CreatePaletteWindow();
- static LONG FAR PASCAL PaletteWndProc(HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lParam);
- // Generated message map functions
- protected:
- //{{AFX_MSG(CColorPicker)
- afx_msg BOOL OnEraseBkgnd(CDC* pDC);
- afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
- afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
- afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- private:
- HWND m_hwndBuddy;
- COLORREF m_CurrentColor;
- HWND m_hPaletteWnd;
- BOOL m_bPaletteWndActive;
- HCURSOR m_hCursorStraw;
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_COLORPICKER_H__52F28BCF_DBD4_49A1_8293_1B7FBFB8735D__INCLUDED_)