Click here to Skip to main content
15,896,727 members
Articles / Desktop Programming / MFC

CColorChooser an IDE style Color Picker

Rate me:
Please Sign up or sign in to vote.
4.70/5 (11 votes)
4 Oct 20011 min read 59.7K   2K   29  
CColorChooser an IDE style Color Picker
/////////////////////////////////////////////////////////////////////////////
//
// Disclaimer Notice
// ------------------
// The Author cannot guarantee this software is error free.
// The author also disclaims all responsibility for damages or 
// loss of profits caused by the failure of this software
//. Your usage of these modifications indicates your willingness to 
// accept complete responsibility.
//
//
// Developed by: Norm Almond for www.codeproject.com 
//
// Please use this software freely, if you fix or make any modifications to
// the software you can let me know so I can improve future versions.
//
// Version 1.00 - First Released 03 March 2001
//
/////////////////////////////////////////////////////////////////////////////

// WebColorWnd.h: interface for the CWebColorWnd class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_WEBCOLORWND_H__793DEE24_0E7D_477B_948C_D1B0B1657186__INCLUDED_)
#define AFX_WEBCOLORWND_H__793DEE24_0E7D_477B_948C_D1B0B1657186__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

// WebColorWnd.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CWebColorWnd window

class CWebColorWnd : public CListBox
{
// Construction
public:
	CWebColorWnd();

// Attributes
public:
	void  SetCurrentColor(COLORREF crCurrent);

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CWebColorWnd)
	public:
	virtual void MeasureItem(LPMEASUREITEMSTRUCT lpMeasureItemStruct);
	virtual void DeleteItem(LPDELETEITEMSTRUCT lpDeleteItemStruct);
	virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
	//}}AFX_VIRTUAL

// Implementation
public:
	BOOL Create(CPoint pt, CWnd* pWnd, UINT nID);
	virtual ~CWebColorWnd();

	// Generated message map functions
protected:
	//{{AFX_MSG(CWebColorWnd)
	afx_msg void OnSelchange();
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};



/////////////////////////////////////////////////////////////////////////////
#endif // !defined(AFX_WEBCOLORWND_H__793DEE24_0E7D_477B_948C_D1B0B1657186__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Software Developer (Senior) Software Kinetics
United Kingdom United Kingdom




Software Kinetics
are experts in developing customised and bespoke applications and have expertise in the development of desktop, mobile and internet applications on Windows.


We specialise in:

  • User Interface Design
  • Desktop Development
  • Windows Phone Development
  • Windows Presentation Framework
  • Windows Forms
  • Windows Communication Framework
  • Windows Services
  • Network Applications
  • Database Applications
  • Web Development
  • Web Services
  • Silverlight
  • ASP.net


Visit Software Kinetics

Comments and Discussions