Replaces the currently selected (highlighted) text.
C
BOOL SftMask_SetSelText(HWND hwndCtl, LPTSTR lpszText);
C++
BOOL CSftMask::SetSelText(LPTSTR lpszText);
hwndCtl
The window handle of the masked edit control.
lpszText
The replacement text. The text is validated against the edit mask as if typed.
The return value is TRUE if the text was entered successfully.
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