HeaderPane
Main
Hide
Share Link
Print

GetSelText

Retrieves the currently selected (highlighted) text.

C

void SftMask_GetSelText(HWND hwndCtl, LPTSTR lpszText);

C++

void CSftMask::GetSelText(LPTSTR lpszText) const;

Parameters

hwndCtl

The window handle of the masked edit control.

lpszText

The buffer receiving the selected text. The buffer must be at least SFTMASK_MAX_MASKEDTEXT (1024) characters.

Comments

Whether literal characters are included depends on the iClipMode field (see SFTMASK_CLIP Constants). SftMask_GetSelText_A and SftMask_GetSelText_W are explicit ANSI/Unicode variants.

See Also SetSelText | Selection | SFTMASK_CLIP Constants


Last Updated 10/11/2026 - (email)
© 2026 Softel vdm, Inc.