Hi,

I wanna use two SysDateTimePick32-common controls in a little app.
They got these styles:



CONTROL "DateTimePicker1",IDC_DATE,"SysDateTimePick32", DTS_RIGHTALIGN | DTS_UPDOWN | WS_TABSTOP,14,17,57,15

CONTROL "DateTimePicker2",IDC_TIME,"SysDateTimePick32", DTS_RIGHTALIGN | DTS_UPDOWN | WS_TABSTOP | 0x8,15,55,56,15


The first lets user chose a date, with the arrows up and down style.

The second time, with arrows up and down style.

I can't find out how to collect the date or time from them, and I don't know what format/struct they will return the data.
Posted on 2002-11-23 07:29:46 by david
Invoke SendMessage,hDTP,DTM_GETSYSTEMTIME,0,addr retDate

The date and time will be returned in retDate which is defined as a SYSTEMTIME structure, hDTP is a handle to the DTP control.
Posted on 2002-11-23 10:44:22 by MurkyT
Thanks a lot Murky, much appreciated! :)
Posted on 2002-11-23 13:28:03 by david