Click here to Skip to main content
15,885,278 members
Articles / Desktop Programming / MFC

Owner-Draw Control Example: A Color Table Generator

Rate me:
Please Sign up or sign in to vote.
5.00/5 (6 votes)
4 Feb 20022 min read 160K   1.4K   23  
A control for generating colour gradients
#if !defined(AFX_COLORSELECTOR_H__58EB0CEE_0726_11D6_A059_006067718D04__INCLUDED_)
#define AFX_COLORSELECTOR_H__58EB0CEE_0726_11D6_A059_006067718D04__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ColorSelector.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CColorSelector dialog

class CColorSelector : public CColorDialog
{
	DECLARE_DYNAMIC(CColorSelector)

public:
	CColorSelector(COLORREF clrInit = 0, DWORD dwFlags = 0,
			CWnd* pParentWnd = NULL);

protected:
	//{{AFX_MSG(CColorSelector)
		// NOTE - the ClassWizard will add and remove member functions here.
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_COLORSELECTOR_H__58EB0CEE_0726_11D6_A059_006067718D04__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
Retired
United States United States
PhD, Computer Science, Carnegie Mellon University, 1975
Certificate in Forensic Science and the Law, Duquesne University, 2008

Co-Author, [i]Win32 Programming[/i]

Comments and Discussions