home *** CD-ROM | disk | FTP | other *** search
- ALCKEY: Uses ALC Values to Filter Input
-
- ALCKEY is a Microsoft(R) Windows(TM) for Pen Computing
- program that shows how to use ALC values to specify how an
- hedit (or bedit) control will filter its input.
-
- ALC values define the types of values that a pen hedit or
- bedit control will recognize. For example, ALC_NUMERIC
- allows only numeric values to be recognized in a
- particular control. Using ALC values allows you greater
- freedom in customizing your application's response to ink.
- Defining a small subset of ALC values for an edit control
- increases the recognition of those values.
-
- ALCKEY displays two edit controls: an hedit and a bedit.
- You can select flags from the ALC dialog box for the hedit
- control. The bedit control remains unchanged so you can
- see the difference between the settings of the two
- controls.
-
- ALCKEY also demonstrates the use of the ShowKeyboard
- function and shows the recommended way of interfacing to
- the virtual keyboard through an owner-drawn "keyboard"
- button. Notice that the virtual keyboard always stays on
- top but never has the focus. The keyboard output is
- directed to the last control that had the focus. ALCKEY
- also demonstrates a way to ensure that only valid controls
- get the focus. The virtual keyboard in Windows for Pen
- Computing version 1.0 is not affected by the filtering
- effects of ALC values. Only recognized ink is affected;
- the keyboard does not involve inking so it bypasses this
- step.
-
- ALCKEY was built and tested under Microsoft Windows
- version 3.1. The program requires PENWIN.DLL, which can be
- found in both Microsoft Windows for Pen Computing and the
- Microsoft Windows version 3.1 Software Development Kit
- (SDK).
-
- KEYWORDS: PR-CD2; LoadString; LoadBitmap;
- GetSystemMetrics; CreateCompatibleDC; StretchBlt; _fmemcpy
-