Using CMonthCalCtrl

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Using CMonthCalCtrl.

The month calendar control (CMonthCalCtrl) implements a calendar-like user interface. This provides the user with a very intuitive and recognizable method of entering or selecting a date. The control also provides the application with the means to obtain and set the date information in the control using existing data types. By default, the month calendar control displays the current day and month. However, the user is able to scroll to the previous and next months and select a specific month and/or year.

System_CAPS_ICON_note.jpg Note

To use the CMonthCalCtrl class in your project, you must include AFXDTCTL.H, usually in STDAFX.H.

Controls

Show: