|
|
Edit control (filter)
EDIT control, which can filter the user's input.
The control supports two kinds of filtering: an include mask and an
exclude mask. Both masks will contain characters that is either not accepted
or only accepted as user input.
If an attempt is made to enter an illegal character, the control will
play the standard beep sound.
Using the style setting
To use the control, place an Edit control on your dialog.
In the OnInitDialog() event handler, add the following line:
Use the following code to set up the control to only accept digits and to jump to the next control when 4 digits have been entered.
Source Code DependenciesMicrosoft Visual C++ 6.0Microsoft WTL 3.0 Library See AlsoMy more advanced Edit validating controlDownload Files
Written by Bjarke Viksoe. Article submitted 6/7/2001.
|
|||