Click here to Skip to main content
12,695,044 members (31,274 online)
Click here to Skip to main content

Stats

122.2K views
2.4K downloads
34 bookmarked
Posted

Enhanced Focus Edit Control with Input Filtering

, 3 Oct 2000 CPOL
An edit control that provides strong visual feedback when it has the input focus, and allows filtering of input and/or displayed characters.
// FocusEditDemoDlg.h : header file
//

#if !defined(AFX_FOCUSEDITDEMODLG_H__A0529C05_D8E0_482C_99A9_127A8D8A45C1__INCLUDED_)
#define AFX_FOCUSEDITDEMODLG_H__A0529C05_D8E0_482C_99A9_127A8D8A45C1__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CFocusEditDemoDlg dialog

class CFocusEditDemoDlg : public CDialog
{
// Construction
public:
	CFocusEditDemoDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CFocusEditDemoDlg)
	enum { IDD = IDD_FOCUSEDITDEMO_DIALOG };
	CFocusEditCtrl	m_fecValue;
	CFocusEditCtrl	m_fecUsername;
	CFocusEditCtrl	m_fecTID;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CFocusEditDemoDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_FOCUSEDITDEMODLG_H__A0529C05_D8E0_482C_99A9_127A8D8A45C1__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

James R. Twine
President JRTwine Software, LLC
United States United States
Programming since the age of 10, started professionally at the age of 17. Currently involved in both Client and Server side development on Win32 platforms for MC/HA/FT financial applications. Development experience with Win32, Win16, Linux and other flavors of Unix.

Extensive multithreaded development experience on Windows platforms using the Win32 SDK, and MFC.

Experience with HA/FT n-tiered Client/Server systems as well as GUI apps of varying complexity. Some experience with Game developement.

Having learned that the stuff you can barely get away with doing Client-side apps just does not cut it in the real "Server World", I am amazed how many 'professionals' cannot tell the difference between "works" and "correct" or try to (mis)use VB and/or MFC on server-side development projects, never considering that just because it RUNS, does not mean it runs WELL.

Lastly, I am also a collector of arcade games, and can perform repairs, conversions, etc. Search for my name, you will find me on lots of arcade-related documents and sites.

Sites of interest(?):
http://www.jrtwine.com
http://www.jrtwine.com/jtwine
http://www.signingtime.com
http://www.deletefxpfiles.com
http://www.checkfavorites.com
http://www.coinop.org

You may also be interested in...

Pro
Pro
| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170118.1 | Last Updated 4 Oct 2000
Article Copyright 2000 by James R. Twine
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid