HeaderPane
Main
Hide

SftMask/DLL 7.0 - Masked Edit Control

Share Link
Print

C/C++ API

The complete C and C++/MFC API for SftMask/DLL 7.0, in alphabetical order.

FunctionDescription
ActivateInputActivate or deactivate data entry.
AutoCompleteAddBottomAdd a custom entry at the bottom of the open autocomplete suggestion list.
AutoCompleteAddTopAdd a custom entry at the top of the open autocomplete suggestion list.
AutoCompleteRefreshOpen or refresh the autocomplete window.
AutoCompleteSeedAdd an array of strings to the autocomplete save file, skipping entries already present.
CanUndoReturn whether an undo operation is possible.
CreateCreate a masked edit control as a child window programmatically (C++/MFC only).
CSftMaskConstructor / destructor for the MFC class (C++/MFC only).
EmptyUndoEmpty the undo buffer.
FreeGDIPlusImageLoadedFromFileFree a GDI+ image previously loaded with LoadGDIPlusImageFromFile.
FreeGDIPlusImageLoadedFromResourceFree a GDI+ image previously loaded with LoadGDIPlusImageFromResource.
GetCharIndexReturn the index of the character at a given location.
GetCharPosReturn the bounding rectangle of a range of characters.
GetControlInfoRetrieve the current SFTMASK_CONTROL structure.
GetDarkModeReturn the current dark mode setting (OFF / ON / AUTO).
GetDateTimeRetrieve the contents as a date/time value.
GetDesignReturn whether the control is in design mode.
GetDPIReturn the effective DPI of the monitor the control is currently displayed on.
GetHighContrastModeReturn the current high contrast setting (OFF / ON / AUTO).
GetImageScalingReturn the current image-scaling setting (ASIS / STRETCH).
GetInsertPositionCalculate the closest valid caret location for insertion.
GetPixelScalingReturn the current pixel-scaling setting (ASIS / STRETCH).
GetPositionReturn the position and dimensions of a control area.
GetSelTextRetrieve the currently selected text.
GetTextRetrieve the control's contents.
GetTextDisplayRetrieve the control's contents as displayed (the formatted representation).
GetValueRetrieve the value of a numeric input field or a mask variable.
HitTestDetermine the control area at a given location.
IsCalculatorWindowOrChildWindowReturn whether a window is the popup calculator window or one of its children.
IsCalendarWindowOrChildWindowReturn whether a window is the popup calendar window or one of its children.
IsDarkModeActiveReturn TRUE if dark-mode rendering is currently in effect.
IsEmptyReturn whether the control is empty.
IsHighContrastActiveReturn TRUE if high-contrast rendering is currently in effect.
IsValidReturn whether the control's contents are valid.
IsValidWithMsgValidate the contents, displaying a suitable error message if invalid.
LoadGDIPlusImageFromFileLoad a PNG / TIFF / JPEG / GIF / EMF image from a file as a GDI+ image.
LoadGDIPlusImageFromResourceLoad a PNG / TIFF / JPEG / GIF / EMF image from an embedded application resource as a GDI+ image.
NextControlMove the input focus to the next control on the dialog.
OptimalPositionPosition the caret at the optimal input position.
PrevControlMove the input focus to the previous control on the dialog.
QueryCharTest whether the control accepts the specified character.
RegisterAppRegister the SftMask window classes with a process.
RollupClose any open popup window (calendar, calculator, autocomplete).
SetBoldDateSet a date shown bold in the popup calendar.
SetControlInfoApply a SFTMASK_CONTROL structure to the control.
SetDarkModeSelect OFF / ON / AUTO dark mode for the control.
SetDateTimeSet the contents from a date/time value.
SetDefaultValueApply the default text to an empty control.
SetDesignSwitch the control into / out of design mode.
SetHighContrastModeSelect OFF / ON / AUTO high contrast for the control.
SetImageScalingSelect whether the error images are scaled by currentDPI / 96.
SetPixelScalingSelect whether caller-supplied pixel dimensions are interpreted as 96-DPI reference values.
SetSelTextReplace the currently selected text.
SetTextSet the control's contents.
SetValueSet the value of a numeric input field or a mask variable.
ShowDropPositionVisualize the insert location during drag & drop.
UnregisterAppUnregister the SftMask window classes.
WndProcThe masked edit control's window procedure. Exposed for advanced scenarios; applications do not call it directly.

See Also Notifications | Windows Messages | SFTMASK_CONTROL


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