Click here to Skip to main content
13,051,404 members (51,748 online)
Click here to Skip to main content


249 bookmarked
Posted 29 Jul 2004

CFilterEdit: Use Regular Expressions to Filter Your Input

, 3 Oct 2011
The definitive approach to filtering input text. Includes configurable error display.
// Microsoft Visual C++ generated include file.
// Used by EditTest.rc
#define IDM_ABOUTBOX                    0x0010
#define IDD_ABOUTBOX                    100
#define IDS_ABOUTBOX                    101
#define IDD_EDITTEST_DIALOG             102
#define IDR_MAINFRAME                   128
#define IDC_EDIT_DATE                   1000
#define IDC_EDIT_UINT                   1001
#define IDC_EDIT_PRICE                  1002
#define IDC_SPIN_UINT                   1003
#define IDC_EDIT_EMAIL                  1004
#define IDC_MONTHCALENDAR1              1005
#define IDC_RADIO_DATE                  1006
#define IDC_RADIO_TIME                  1007
#define IDC_RADIO_DATE_TIME             1008
#define IDC_CHECK_ALLOW_NULL            1009
#define IDC_SPIN_DATE                   1010
#define IDC_EDIT1                       1011
#define IDC_EDIT_YEAR                   1011

// Next default values for new objects
#define _APS_NEXT_RESOURCE_VALUE        134
#define _APS_NEXT_COMMAND_VALUE         32771
#define _APS_NEXT_CONTROL_VALUE         1013
#define _APS_NEXT_SYMED_VALUE           101

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.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Ben Hanson
Software Developer (Senior)
United Kingdom United Kingdom
I started programming in 1983 using Sinclair BASIC, then moving on to Z80 machine code and assembler. In 1988 I programmed 68000 assembler on the ATARI ST and it was 1990 when I started my degree in Computing Systems where I learnt Pascal, C and C++ as well as various academic programming languages (ML, LISP etc.)

I have been developing commercial software for Windows using C++ for 22 years.

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170713.1 | Last Updated 3 Oct 2011
Article Copyright 2004 by Ben Hanson
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid