HeaderPane
Main
Hide

SftMask/DLL 7.0 - Masked Edit Control

Share Link
Print

SetSelText

Replaces the currently selected (highlighted) text.

C

BOOL SftMask_SetSelText(HWND hwndCtl, LPTSTR lpszText);

C++

BOOL CSftMask::SetSelText(LPTSTR lpszText);

Parameters

hwndCtl

The window handle of the masked edit control.

lpszText

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

Returns

The return value is TRUE if the text was entered successfully.

Comments

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

See Also GetSelText | Selection | SFTMASK_CLIP Constants


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