void RestoreFocus(BOOL bRestore = TRUE). Determines the behaviour when clicking on the button. If TRUE then the control re-sets the focus back to the window whitch had the focus on clicking the button, else the focus is set to the edit control. If the control is not editable focus is always set back to the previously focused window. The default is for the focus to be set to the edit control.
void SetNonEditable(BOOL bNonEditable = TRUE). Used to make the edit portion of the control non-editable. The default is editable.
BOOL GetNonEditable(). Returns whether the edit control is currently editable.
virtual BOOL IsValidDate(LPCTSTR lpszDate = NULL). Returns whether the date string passed is valid. If lpszDate is NULL then it returns whether the text in the edit control is a valid date string.
void SetValidCharsOnly(BOOL bValidCharsOnly = TRUE). Sets whether the user can only enter characters that are valid
BOOL GetValidCharsOnly(). Returns whether the user can only enter valid characters into the edit control
void SetValidChars(LPCTSTR lpszValidChars = NULL). Sets the characters that are valid for the user to type into the edit control. If NULL is specified, then the default characters are used (0-9 and the current user s locale s date separator). If the user changes the locale settings then the control will detect this and use the new separator.
CString GetValidChars(). Returns the characters that have been set as being valid for the user to type into the edit control
void SetAllowUpDownKeys(BOOL bAllow = TRUE). Sets whether the up/down arrow keys will increment/decrement the part of the date string that contains the cursor.
BOOL GetAllowUpDownKeys(). Returns whether the up/down keys will increment/decrement parts of the date string.