Click here to Skip to main content
12,065,606 members (43,770 online)
Click here to Skip to main content

Stats

323.2K views
8.3K downloads
245 bookmarked
Posted

CFilterEdit: Use Regular Expressions to Filter Your Input

, 3 Oct 2011 CPOL
The definitive approach to filtering input text. Includes configurable error display.
#if !defined(AFX_CALENDARDLG_H__FCE5D4B2_D220_46F4_8EE3_3B784DAA2B0A__INCLUDED_)
#define AFX_CALENDARDLG_H__FCE5D4B2_D220_46F4_8EE3_3B784DAA2B0A__INCLUDED_

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

#include "Calendar.h"

namespace FilterEdit
{
class CDateTimeEdit;

/////////////////////////////////////////////////////////////////////////////
// CCalendarDlg dialog
class CCalendarDlg : public CDialog
{
// Construction
public:
	CCalendarDlg(CDateTimeEdit *pEdit, CWnd *pParent = NULL);

	void SetDate (const int iDay, const int iMonth, const int iYear);

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CCalendarDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	CCalendar m_Calendar;
	// Not owner
	CDateTimeEdit *m_pEdit;

	virtual void PostNcDestroy ();

	// Generated message map functions
	//{{AFX_MSG(CCalendarDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnKillFocus(CWnd* pNewWnd);
	afx_msg void OnSelectDaypicker (NMHDR *pNotifyStruct, LRESULT *result);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};
}

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

#endif // !defined(AFX_CALENDARDLG_H__FCE5D4B2_D220_46F4_8EE3_3B784DAA2B0A__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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

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 15 years.

You may also be interested in...

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