CMaskedEdit.Createmethod
Creates an instance of the control
Syntax
FUNCTION CMaskedEdit.Create (BYVAL pWindow AS CWindow PTR, BYVAL cID AS LONG_PTR, BYVAL x AS LONG = 0, BYVAL y AS LONG = 0, BYVAL nWidth AS LONG = 0, BYVAL nHeight AS LONG = 0, BYVAL dwStyle AS DWORD = -1, BYVAL dwExStyle AS DWORD = -1) AS HWND
Example
DIM pMakedEdit AS CMaskedEdit pMaskEdit.Create(CMaskedEdit(@pWindow, IDC_MASKED, 10, 30, 280, 23) pMakedEdit.EnableMask(" ddd ddd dddd", "(___) ___-____", "_") pMakedEdit.SetText("(123) 123-1212"), TRUE
Reference
- Include file
CMaskedEdit.inc - Defined in AfxNova/CMaskedEdit.inc:253
- Documented in Windows/Windows GUI/CMaskedEdit Class.md
- Topic: CMaskedEdit Class