bluakp.blogg.se

Getwindowtext mfc
Getwindowtext mfc








getwindowtext mfc

The following example demonstrates how to set up a mask (for example a phone number) by using the EnableMask method to create the mask for the masked edit control, the SetValidChars method to specify a string of valid characters that the user can enter, and SetWindowText method to display a prompt in the masked edit control. If you do not call one or more methods to initialize the mask, valid characters, and default text, the masked edit control behaves just as the standard edit control behaves. Perform the following steps to use the CMFCMaskedEdit control in your application:Įmbed a CMFCMaskedEdit object into your window class.Ĭall the CMFCMaskedEdit::EnableMask method to specify the mask.Ĭall the CMFCMaskedEdit::SetValidChars method to specify the list of valid characters.Ĭall the CMFCMaskedEdit::SetWindowText method to specify the default text for the masked edit control.Ĭall the CMFCMaskedEdit::GetWindowText method to retrieve the validated text. Specifies a string of valid characters that the user can enter.ĭisplays a prompt in the masked edit control.Ĭalled by the framework to validate the specified character against the corresponding mask character. Retrieves validated text from the masked edit control.

getwindowtext mfc

Used by the framework to obtain a pointer to the CRuntimeClass object that is associated with this class type. Specifies whether the text is validated against only masked characters, or against the whole mask. Specifies whether the masked edit control selects particular groups of user input, or all user input. Specifies whether the GetWindowText method retrieves only masked characters. Syntax class CMFCMaskedEdit : public CEdit The CMFCMaskedEdit class supports a masked edit control, which validates user input against a mask and displays the validated results according to a template.










Getwindowtext mfc