CMFCMaskedEdit::GetWindowText
Retrieves validated text from the masked edit control.
int GetWindowText(
LPTSTR lpszStringBuf,
int nMaxCount
) const;
void GetWindowText(
CString& rstrString
) const;
Parameters
[out] lpszStringBuf
A pointer to a buffer that receives the text from the edit control.[in] nMaxCount
The maximum number of characters to receive.[out] rstrString
A reference to the string object that receives the text from the edit control.
Return Value
The first method overload returns the number of bytes of the string that is copied to the lpszStringBuf parameter buffer; 0 if the masked edit control has no text.
Remarks
This method copies the text from the masked edit control to the lpszStringBuf buffer or the rstrString string.
This method redefines CWnd::GetWindowText.
Requirements
Header: afxmaskededit.h