Click here to Skip to main content
15,894,017 members
Articles / Desktop Programming / MFC

Color components editor control

Rate me:
Please Sign up or sign in to vote.
4.93/5 (11 votes)
2 Apr 20025 min read 79.7K   2.7K   31  
This control lets you edit RGB or HSL components of a color, like in Paint Shop Pro.
// This is a part of the GWC Library
// Copyright (C) 2001-2002 Aircom software
// All rights reserved.
//
// This source code can be used, distributed or modified
// free of charge only if this header copyright is not removed.
// In other cases, contact us at:
// web:   http://www.aircom.org
// email: info@aircom.org
//

#ifndef __GWCCCECTRLINC_H
#define __GWCCCECTRLINC_H

#include "GWCCCELink.h"

#ifdef _GWCCCECTRL_IN_OTHER_DLL
GWCCCECTRL_LINKAGE void GWCCCECtrlDllInitialize ();
#endif // _GWCCCECTRL_IN_OTHER_DLL

#if defined _AFXDLL && !defined _GWCCCECTRL_STATIC_
	//----------------------------------------------
	// MFC shared DLL, GWCColorComponentEditCtrl shared DLL
	//----------------------------------------------
	#ifdef _DEBUG
		#ifdef _UNICODE
			#pragma comment(lib,"GWCCceUD.lib")
			#pragma message("Automatically linking with GWCCceUD.dll")
		#else
			#pragma comment(lib,"GWCCceD.lib")
			#pragma message("Automatically linking with GWCCceD.dll")
		#endif
	#else
		#ifdef _UNICODE
			#pragma comment(lib,"GWCCceU.lib")
			#pragma message("Automatically linking with GWCCceU.dll")
		#else
			#pragma comment(lib,"GWCCce.lib")
			#pragma message("Automatically linking with GWCCce.dll")
		#endif
	#endif
#elif defined _GWCCCECTRL_STATIC_
	//--------------------------------------------------
	// MFC shared DLL, GWCColorComponentEditCtrl static library
	//--------------------------------------------------
	#ifdef _DEBUG
		#ifdef _UNICODE
			#pragma comment(lib,"GWCCceStUDS.lib")
			#pragma message("Automatically linking with GWCCceStUDS.lib")
		#else
			#pragma comment(lib,"GWCCceStDS.lib")
			#pragma message("Automatically linking with GWCCceStDS.lib")
		#endif
	#else
		#ifdef _UNICODE
			#pragma comment(lib,"GWCCceStUS.lib")
			#pragma message("Automatically linking with GWCCceStUS.lib")
		#else
			#pragma comment(lib,"GWCCceStS.lib")
			#pragma message("Automatically linking with GWCCceStS.lib")
		#endif
	#endif
#endif

#include "GWCColorComponentEditCtrl.h"
#include "GWCColorComponentSet.h"
#include "GWCColorFunc.h"

#endif // __GWCCCECTRLINC_H

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
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions