SAMPLE: UpDnDate.exe Implements a DateTime Control with a Spin Button and Callback Fields

ID: Q224570


The information in this article applies to:


SUMMARY

UpDnDate.exe is a sample that demonstrates how the new DateTime picker control can be used in an MFC application. In addition to illustrating the code that needs to be written in order to use such a control with callback fields, the sample also shows how to handle notifications sent by the child spin button created when the DTS_UPDOWN style is specified for the date time control.


MORE INFORMATION

The following file is available for download from the Microsoft Software Library:

UpDnDate.exe
Release Date:

For more information about downloading files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base:
Q119591 How to Obtain Microsoft Support Files from Online Services


The code included is based on a Visual C++ version 6.0 AppWizard generated dialog based application. The points of interest are:
To see the control in action, build the project and run it. Set the focus to the custom field and either press the up or down arrow keys or use the mouse to click on the up or down buttons of the spin control. You'll see that all fields of the date time control are updated as expected.

Additional query words: kbfile, kbsample, kbmfc, DateTimePicker


Keywords          : kbfile kbsample kbCtrl kbDateTime kbMFC kbUpDownCtrl kbVC kbVC600 kbDSupport 
Version           : winnt:6.0
Platform          : winnt 
Issue type        : 

Last Reviewed: June 14, 1999