HeaderPane
Main
Hide

SftMask/DLL 7.0 - Masked Edit Control

Share Link
Print

GetText

Retrieves the masked edit control's contents.

C

int SftMask_GetText(HWND hwndCtl, LPTSTR lpszText, int cchTextMax);

C++

int CSftMask::GetText(LPTSTR lpszText, int cchTextMax) const;

Parameters

hwndCtl

The window handle of the masked edit control.

lpszText

The buffer receiving the text.

cchTextMax

The buffer size, in characters.

Returns

The return value is the number of characters copied.

Comments

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

GetText should be used instead of the WM_GETTEXT message or GetWindowText, which return the display text.

See Also SetText | GetTextDisplay | SFTMASK_CLIP Constants


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