HotKeyEd.exe

This application demonstrates the implementation of a shortcut key
(hot key) edit control.  The application contains a dialog box that
allows the user to specify which hot key the application will use. 
This dialog box uses a subclasses edit control to display the name
of the hot key as it is entered.  The edit control checks that the 
that the hotkey is valid before displaying it, and will not allow 
the user to enter invalid hot keys.  GetKeyNameText() is used to get
the names of the keys. 


When the user enters a valid shortcut key, it also lets the user
install that shortcut key.  To install the shortcut key, the app
uses the Windows 3.1 hook function SetWindowsHookEx() to install
a task specific keyboard hook.  The shortcut key can also be
removed by the user by menu selection or exiting the app.

When the shortcut key is installed, the caption is flashed to let
the user know that a hot key has been installed.  The caption keeps
on flashing until the removal of the shortcut key.  When the shortcut
key is pressed by the user, the main window's background color is
toggled.

A shortcut key must have an ALT or/and CTRL modifier.  A shift can
also be specified but not by itself.  To erase a key combination from
the edit control, use BACKSPACE or enter another key combination.
ESC, ENTER, TAB, SPACEBAR, and PRINT SCREEN keys are not allowed.


-iag

HotKeyEd requires the 3.1 SDK to build.
