Skip to content

Latest commit

 

History

History
58 lines (49 loc) · 2.09 KB

File metadata and controls

58 lines (49 loc) · 2.09 KB
title Using CDateTimeCtrl
ms.custom na
ms.date 10/14/2016
ms.prod visual-studio-dev14
ms.reviewer na
ms.suite na
ms.technology
devlang-cpp
ms.tgt_pltfrm na
ms.topic article
f1_keywords
CDateTimeCtrl
dev_langs
C++
helpviewer_keywords
DateTimePicker control [MFC], CDateTimeCtrl class
ms.assetid cb2a8720-43f1-4c33-a3a4-def9a1622e00
caps.latest.revision 8
ms.author mblome
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

Using CDateTimeCtrl

The date and time picker control (CDateTimeCtrl) implements an intuitive and recognizable method of entering or selecting a specific date. The main interface of the control is similar in functionality to a combo box. However, if the user expands the control, a month calendar control appears (by default), allowing the user to specify a particular date. When a date is chosen, the month calendar control automatically disappears.

Note

To use both the CDateTimePicker and CMonthCalCtrl classes in your project, you must include AFXDTCTL.H, usually in your project's STDAFX.H file.

What do you want to know more about?

See Also

Controls