HeaderPane
Main
Hide

SftMask/DLL 7.0 - Masked Edit Control

Share Link
Print

Creating a Dialog Resource

This section describes how to add a masked edit control to a dialog using Visual Studio.

Adding a Masked Edit Control to a Dialog

To add a SftMask/DLL control to a dialog, use the "Custom Control" toolbar button. Click on the button and then the dialog being designed to add a control.

Once a custom control has been added to a dialog, you can edit the control properties by using the View, Properties... menu command.

To define a SftMask/DLL control, enter the class SftMaskControl70 in the edit field labeled Class.

SftMask/DLL Control Styles

To enter a SftMask/DLL window style in the User Control Properties dialog, use the following list to add the desired style values and enter the resulting hexadecimal value in the field marked Style.

StyleValueDescription
WS_CHILD0x40000000Creates a child window. Usually required.
WS_DISABLED0x08000000Creates a masked edit control that is initially disabled.
WS_GROUP0x00020000Specifies the first control of a group of controls.
WS_TABSTOP0x00010000Specifies a control that can receive the keyboard focus when the user presses the TAB key.
WS_VISIBLE0x10000000Creates a masked edit control that is initially visible. Usually required.

The masked edit control is customized at run-time by populating a SFTMASK_CONTROL structure and passing it to SftMask_SetControlInfo.

Test Mode

In the dialog test mode offered by Visual Studio, the SftMask/DLL control will not be displayed. Instead, a gray box will show the location of the control. When using the Tab key to test the tab stops, the simulated SftMask/DLL control will not receive the input focus and appear not to have a tab stop defined.


Last Updated 08/30/2026 - (email)
© 2026 Softel vdm, Inc.