Click here to Skip to main content
15,881,898 members
Articles / Desktop Programming / ATL

SP Numeric Edit Control

Rate me:
Please Sign up or sign in to vote.
4.78/5 (11 votes)
16 Nov 200511 min read 74.7K   3.6K   36  
Masked numeric edit ActiveX control.
/////////////////////////////////////////////////////////////////////////////////////////
//	Project:		SP Data Formatting Library 1.5
//
//	File:			stdafx.h		
//
//	Developer(s):	Sergei Pavlovsky
//					sergei_vp@hotmail.com
//					Copyright (c) 2004-2005
//
//	Description:	include file for standard system include files, or project specific 
//					include files that are used frequently, but are changed infrequently
//
//	Platforms:		Win32, ATL
//
//	This code may be used in compiled form in any way you desire. This file may be 
//	redistributed unmodified by any means PROVIDING it is not sold for profit without 
//	the authors written consent, and providing that this notice and the authors name 
//	is included. If the source code in this file is used in any commercial application 
//	then acknowledgement must be made to the author of this file (in whatever form 
//	you wish).
//
//	This file is provided "as is" with no expressed or implied warranty. The author 
//	accepts no liability for any damage/loss of business that this product may cause.
/////////////////////////////////////////////////////////////////////////////////////////

#pragma once

/////////////////////////////////////////////////////////////////////////////////////////
// Win32

#define WIN32_LEAN_AND_MEAN		// Exclude rarely-used stuff from Windows headers

#ifndef STRICT
#define STRICT
#endif

// Modify the following defines if you have to target a platform prior to the ones 
// specified below.
// Refer to MSDN for the latest info on corresponding values for different platforms.

// Allow use of features specific to Windows 95 and Windows NT 4 or later.
// Change this to the appropriate value to target Windows 98 and Windows 2000 or later.
#ifndef WINVER
#define WINVER 0x0400
#endif

// Allow use of features specific to Windows NT 4 or later.
// Change this to the appropriate value to target Windows 2000 or later.
#ifndef _WIN32_WINNT
#define _WIN32_WINNT 0x0400
#endif						

// Allow use of features specific to Windows 98 or later.
// Change this to the appropriate value to target Windows Me or later.
#ifndef _WIN32_WINDOWS
#define _WIN32_WINDOWS 0x0410
#endif

// Allow use of features specific to IE 4.0 or later.
// Change this to the appropriate value to target IE 5.0 or later.
#ifndef _WIN32_IE
#define _WIN32_IE 0x0400
#endif

/////////////////////////////////////////////////////////////////////////////////////////
// ATL

#define _ATL_APARTMENT_THREADED
#define _ATL_NO_AUTOMATIC_NAMESPACE

// some CString constructors will be explicit
#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS

// turns off ATL's hiding of some common and often safely ignored warning messages
#define _ATL_ALL_WARNINGS


#include <atlbase.h>

using namespace ATL;

/////////////////////////////////////////////////////////////////////////////////////////
// STL

#include <vector>
#include <map>
#include <stack>
#include <string>
#include <ostream>
#include <algorithm>

typedef std::basic_string<TCHAR> tstring;
typedef std::basic_ostream<TCHAR> tostream;


// ??? temp
#define _MAX_STACK_VAR_SIZE 128

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
Web Developer
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