HeaderPane
Main
Hide
Share Link
Print

GetTextDisplay

Retrieves the masked edit control's contents as displayed (the formatted representation).

C

void SftMask_GetTextDisplay(HWND hwndCtl, LPTSTR lpszText, BOOL fPure, BOOL fLiterals);

C++

void CSftMask::GetTextDisplay(LPTSTR lpszText, BOOL fPure, BOOL fLiterals) const;

Parameters

hwndCtl

The window handle of the masked edit control.

lpszText

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

fPure

TRUE to return unfilled input positions as carriage-return characters ('\r'), FALSE to return them as spaces. The prompt character is never returned.

fLiterals

TRUE to return the text as displayed, including literal characters and thousands separators. FALSE removes thousands separators, and also literal characters when fPure is TRUE.

Comments

The display text reflects the formatted contents, including numeric group formatting and locale date/time formatting. SftMask_GetTextDisplay_A and SftMask_GetTextDisplay_W are explicit ANSI/Unicode variants.

See Also GetText | Built-In Formatting


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