HeaderPane
Main
Hide

SftMask/DLL 7.0 - Masked Edit Control

Share Link
Print

Built-In Formatting

Fields defined in a masked edit control are automatically formatted based on the defined edit mask (lpszMask field of the SFTMASK_CONTROL structure). Numeric fields support group formatting, leading zeros and negative number display; date and time fields are formatted using the user's locale.

The lpszFormattedText field can be used to override the default contents while the control does not have the input focus. The text is defined by the application. As soon as the masked edit control loses the input focus, the text defined by lpszFormattedText is displayed. If lpszFormattedText is set to an empty string or whenever the mouse cursor moves over the edit control, the formatted text based on the edit mask is displayed instead.

The GetTextDisplay function can be used by an application to retrieve the control's contents as displayed, with or without literal characters, for example to store or further process the formatted representation.

See Also Masked Edit Control | Edit Masks | GetTextDisplay | SFTMASK_CONTROL


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