FLSHEDIT Sample Application Additional Information: README.TXT

FLSHEDIT.ZIP is a sample application, compatible with both Windows 3.0
and 3.1, that demonstrates how to flash an edit control in a dialog
box by changing its background and text colors. This way, the user is
informed of the edit control that currently has the focus in a dialog
box which has multiple edit controls.  This is similar to flashing a
window's caption bar using FlashWindow to catch the user's attention.

The user is given two options in the dialog box containing the edit
controls:

- Set and reset the flashing mechanism
- Change the color of flashing as desired

The flashing of the current edit control stops when either of the
following happens:

- The control loses the focus, either through the TAB key or the mouse
- The edit control's text is changed (not only selected or touched)

Also, the text in the edit control changes between "I HAVE the Focus"
or "I DON'T have the Focus" indicating whether it has the focus or
not. If the user changes an edit control's text, the control retains
the changed text when the user switches the focus to another control.
However, if the user changes the text of the control to an empty
string, when the control loses the focus the text is changed back to
"I DON'T have the focus."

Windows 3.0 does not properly change the background color of a single
line edit control. For more information on this problem, which has
been corrected in Windows 3.1, search this Knowledge Base on the word
WIN9012016. FLSHEDIT incorporates the first method provided by this
Knowledge Base article.

The FLSHEDIT sample contains a dialog box with four edit controls. The
application uses one timer which is used to flash whichever edit
control has the focus. The application sets the timer each time an
edit control receives the input focus (an EN_SETFOCUS message). The
timer is destroyed when an edit control loses the input focus (an
EN_KILLFOCUS message) or when the context of the edit control changes
(an EN_CHANGE message).

The FLSHEDIT sample includes the following files:

ABOUTDLG.C    Contains the dialog procedure for the About dialog box

ABOUTDLG.H    Header file for the About dialog procedure

FLSHDLG.C     Contains the dialog procedure for the FlashEdit dialog
              box

FLSHDLG.H     Header file for the FlashEdit dialog procedure

FLSHEDIT.C    Contains WinMain

FLSHEDIT.DEF  Module definition file

FLSHEDIT.DLG  Dialog templates for the FlashEdit dialog box

FLSHEDIT.MAK  Make file for this program

FLSHEDIT.RC   Resource file -- contains menu, string table, About
              dialog template, and so forth

GLOBAL.H      Global header file for this program
INIT.C        Contains initialization procedures

INIT.H        Header file for initialization procedures

LEGAL.TXT     Legal conditions to use this piece of software

MAINWND.C     Contains Main window procedure

MAINWND.H     Header file for main window procedure

README.TXT    This file
---
Copyright (c) 1992 Microsoft Corporation. All rights reserved.
