tags:

views:

245

answers:

3

I have a Win32 application and i want to Add a DateTimePicker Control, like the one in .NET. I though don't want to include the whole Framework in my application, nor MFC or whatever.

How can I add the native control in a Way with the least amount of dependencies?

+1  A: 

See the MSDN documentation for Using Date and Time Picker Controls

EDIT: Ignore my previous reply, there actually is a Win32 class for this.

StackedCrooked
+1  A: 

You can use CreateWindow and "SysDateTimePick32" as the class name.

Nick D
+1  A: 

Start Here

nos
Its much simpler than i thought! After adding a Date-Time-Control to the dialog ressource in the Visual Stuoresource Editor, all you have to do is calling Sending Messages DTM_SETSYSTEMTIME and DTM_GETSYSTEMTIME to set the initial and get the modified value. No additional Code.
RED SOFT ADAIR