HeaderPane
Main
Hide

SftMask/DLL 7.0 - Masked Edit Control

Share Link
Print

SetText

Sets the masked edit control's contents.

C

int SftMask_SetText(HWND hwndCtl, LPCTSTR lpszText);

C++

int CSftMask::SetText(LPCTSTR lpszText);

Parameters

hwndCtl

The window handle of the masked edit control.

lpszText

The new contents. The text is validated against the edit mask as if typed.

Returns

The return value is the number of characters entered.

Comments

Whether the supplied text is expected to contain literal characters depends on the iClipMode field (see SFTMASK_CLIP Constants). SftMask_SetTextA and SftMask_SetTextW are explicit ANSI/Unicode variants.

Setting an empty string clears the control. If a default text is defined with SFTMASK_DEFAULT_IMMEDIATE handling, the default is applied to the emptied control.

See Also GetText | Default Text | SFTMASK_CLIP Constants


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