CDateTimeCtrl Class
Encapsulates the functionality of a date and time picker control.
class CDateTimeCtrl : public CWnd
Members
Public Constructors
Name |
Description |
---|---|
Constructs a CDateTimeCtrl object. |
Public Methods
Name |
Description |
---|---|
Closes the current date and time picker control. |
|
Creates the date and time picker control and attaches it to the CDateTimeCtrl object. |
|
Retrieves information about the current date and time picker control. |
|
Returns the ideal size of the date and time picker control that is required to display the current date or time. |
|
Retrieves the color for a given portion of the month calendar within the date and time picker control. |
|
Retrieves the CMonthCalCtrl object associated with the date and time picker control. |
|
Retrieves the font currently used by the date and time picker control's child month calendar control. |
|
Gets the style of the current date and time picker control. |
|
Retrieves the current minimum and maximum allowed system times for a date and time picker control. |
|
Retrieves the currently selected time from a date and time picker control and puts it in a specified SYSTEMTIME structure. |
|
Sets the display of a date and time picker control in accordance with a given format string. |
|
Sets the color for a given portion of the month calendar within a date and time picker control. |
|
Sets the font that the date and time picker control's child month calendar control will use. |
|
Sets the style of the current date and time picker control. |
|
Sets the minimum and maximum allowed system times for a date and time picker control. |
|
Sets the time in a date and time picker control. |
Remarks
The date and time picker control (DTP control) provides a simple interface to exchange date and time information with a user. This interface contains fields, each of which displays a part of the date and time information stored in the control. The user can change the information stored in the control by changing the content of the string in a given field. The user can move from field to field using the mouse or the keyboard.
You can customize the date and time picker control by applying a variety of styles to the object when you create it. See Date and Time Picker Control Styles in the Windows SDK for more information about styles specific to the date and time picker control. You can set the display format of the DTP control using format styles. These format styles are described under "Format Styles" in the Windows SDK topic Date and Time Picker Control Styles.
The date and time picker control also uses notifications and callbacks, which are described in Using CDateTimeCtrl.
Inheritance Hierarchy
CDateTimeCtrl
Requirements
Header: afxdtctl.h