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

Professional User Interface Suite

Rate me:
Please Sign up or sign in to vote.
4.99/5 (174 votes)
13 Jan 200423 min read 1.5M   23.6K   641  
MFC extension library enabling software to be provided with a professional UI
//////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////
///                                                                    ///
/// Professional User Interface Suite (TM)                             ///
/// Copyright (C) 2001-2002 by Foss Software Inc.                      ///
///                                                                    ///
/// http://www.fossware.com                                            ///
/// mailto:foss@fossware.com                                           ///
///                                                                    ///
///                                                                    ///
/// This software and accompanying documentation is the copyrighted    ///
/// work of Foss Software Inc.                                         ///
///                                                                    ///
/// Use of this software is governed by the following conditions:      ///
///                                                                    ///
///   a) this software is free for any kind of personal and            ///
///      commercial usage;                                             ///
///                                                                    ///
///   a) you may not reproduce, record, publish, publicly exhibit      ///
///      or distribute this source code without author's express       ///
///      prior written consent (foss@fossware.com);                    ///
///                                                                    ///
///   b) this notice should be remained intact in distributed source   ///
///      files;                                                        ///
///                                                                    ///
///   c) this software is subject to all Warranties and Disclaimers    ///
///      as set forth below;                                           ///
///                                                                    ///
/// Warranties and Disclaimers:                                        ///
///                                                                    ///
/// THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND     ///
/// INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY,      ///
/// FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.             ///
/// IN NO EVENT WILL FOSS SOFTWARE INC. BE LIABLE FOR ANY DIRECT,      ///
/// INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES, ///
/// INCLUDING DAMAGES FOR LOSS OF PROFITS, LOSS OR INACCURACY OF DATA, ///
/// INCURRED BY ANY PERSON FROM SUCH PERSON'S USAGE OF THIS SOFTWARE   ///
/// EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.                ///
///                                                                    ///
//////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////

#if (!defined __EXT_MFC_DEF_H)
#define __EXT_MFC_DEF_H

// Prof-UIS basic library
#ifdef _DEBUG
	#define __PROF_UIS_NAME_		_T("ProfUIS21d")
	#define __PROF_UIS_MODULE_NAME	_T("ProfUIS21d.dll")
	#define __PROF_UIS_LIB_NAME		_T("ProfUIS21d.lib")
#else
	#define __PROF_UIS_NAME_		_T("ProfUIS21")
	#define __PROF_UIS_MODULE_NAME	_T("ProfUIS21.dll")
	#define __PROF_UIS_LIB_NAME		_T("ProfUIS21.lib")
#endif // _DEBUG

#if defined __PROF_UIS_IMPL__
	#define __PROF_UIS_API _declspec(dllexport)
#else 
	#define __PROF_UIS_API _declspec(dllimport)
	#pragma message("   Automatically linking with ProfUIS21 library")
	#pragma message("      (Professional User Interface Suit)")
	#pragma comment( lib, __PROF_UIS_LIB_NAME ) 
#endif

#if defined __PROF_UIS_ADV_IMPL__
	#if (!defined __ENABLED_PROF_UIS_ADV__)
		#define __ENABLED_PROF_UIS_ADV__
	#endif
#endif

#if (defined __ENABLED_PROF_UIS_ADV__)
	// Prof-UIS advanced library
	// (now for internal use only)
	#ifdef _DEBUG
		#define __PROF_UIS_ADV_NAME_		_T("ProfUISAdv21d")
		#define __PROF_UIS_ADV_MODULE_NAME	_T("ProfUISAdv21d.dll")
		#define __PROF_UIS_ADV_LIB_NAME		_T("ProfUISAdv21d.lib")
	#else
		#define __PROF_UIS_ADV_NAME_		_T("ProfUISAdv21")
		#define __PROF_UIS_ADV_MODULE_NAME	_T("ProfUISAdv21.dll")
		#define __PROF_UIS_ADV_LIB_NAME		_T("ProfUISAdv21.lib")
	#endif // _DEBUG

	#if defined __PROF_UIS_ADV_IMPL__
		#define __PROF_UIS_ADV_API _declspec(dllexport)
	#else 
		#define __PROF_UIS_ADV_API _declspec(dllimport)
		#if (!defined __PROF_UIS_IMPL__)
			#pragma message("   Automatically linking with ProfUISAdv21 library")
			#pragma message("      (Professional User Interface Suit / Advanced Stuff)")
			#pragma comment( lib, __PROF_UIS_ADV_LIB_NAME ) 
		#endif
	#endif
#endif // __ENABLED_PROF_UIS_ADV__

// Prof-UIS registry names
#define __PROF_UIS_REG_SECTION			_T("ProfUIS21")
#define __PROF_UIS_REG_PROFILES			_T("Profiles")
#define __PROF_UIS_REG_COMMAND_MANAGER	_T("Command manager")
#define __PROF_UIS_REG_CONTROL_BAR		_T("Control bar")

#endif // __EXT_MFC_DEF_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
Architect Foss Software Inc
Ukraine Ukraine
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions