The Wayback Machine - https://web.archive.org/web/20120101061830/http://www.codeguru.com:80/cpp/controls/editctrl/

    Edit Control

    Edit Control with Icon and Background Text

    Explore an edit control that can display an icon and a prompt text on the background (when the edit control has no text).

    [Updated] A Deterministic Method of Determining a Document's Modified State

    Determine when a document has been modified. In the particular case of word processors, most tend to have a "dirty" flag that is set when a user types. This article demonstrates a smarter "dirty" flag that uses probabilistic methods.

    [Updated] Secure Random Password Generator

    Generate a secure, random password of a desired length.

    [Updated] SP Numeric Edit Control

    Learn about a masked numeric edit ActiveX control.

    Customizable Masked Edit Control

    Learn about an edit control with a masked input that prohibits pasting text with disallowed characters.

    [Updated] Changing the Background Color of an Edit Control

    Learn how to change the background color of a text box.

    XP Style CColorControl Class with Themed Gradient Buttons

    Learn about a set of control-derived classes for a colorful presentation by using XP-styled hottracked controls with themed gradient buttons.

    [Updated] Implement a Console Window Using Edit Control

    If you are writing a telnet-like application that needs a console window, try this simple solution.

    [Updated] An E Notation Numeric Edit Control

    An E Notation Numeric Edit Control

    Transparent Edit Using a Pattern Background Brush

    This article explains how to create a transparent edit control. Instead of using a NULL_BRUSH for the CtlColor message, we create a pattern brush using a chunk of bitmap from the parent window from the place where the editor is going to be shown.

    [Updated] MFC Extension Class CProductKey

    Provides an easy way to enter IDs, PINs, product keys, or so. Also interesting for those who want to know how to embed a customized font into an application.

    Masked CEdit Control

    A masked edit control allows per-character masking. Also, it can be put into passworded mode. There may also be read-only text inside of the box the user can not modify.

    Secure Edit Control (MFC)

    Normally, you see stars (*) when you type something into an edit box that has the password flag. Unfortunately, these edit controls are not secure. By using secure edit controls, you can make your edit boxes resistant to password revealers.

    Changing the Background Color of Edit Controls

    Illustrates how to handle the OnCtlColor message and modify the background colors of edit controls. (The article was updated.)

    Creating a Transparent Editbox with No Redraw Problems

    Learn how to create a transparent edit box that works with a bitmap background.

    Multiline Edit Box with Automatic Scroll Bar Display

    If a multiline Edit Control is created with scroll bars set, the scroll bars are always displayed, even when not needed. Solve this problem using a class such as CScrollEdit, which is presented here.

    Using the CEdit Control (Drag-and-Drop)

    Allows the dragging and dropping of files with an edit control. In the example, the path name of what you dragged will be determined along with the features of the file (such as last create date).

    Drag text between edit controls

    A prompted edit control.

    A New Technique to Add Additional Functions to Windows Controls; a Built-In Expression Calculator in the CEdit Control

    Make extra functionality available from Windows controls. See how to extend the simple edit with a built-in expression calculator (just type in the expression and press "=").

    Creating a Numeric Edit Box

    [Update] Source code has been added for this article.

    Subclassing controls in ATL dialogs using WTL

    How to use an Edit control in ATL with WTL.

    CPromptEdit

    A prompted edit control.

    Multi-Field Edit Controls

    A Whole New Class of Edit Controls

    CVisValidEdit : Visual Validator

    CVisValidEdit is an edit control with a difference - there is visual cues '& validation (both built in '& customisable).