How can I set the SysDateTimePick32???

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Manolo.

Hi,
The problem is. How I send a new date to SysDateTimePick32?

I don't have problem with the read -- Date.s=CalendarDate(Gadget)
but I need change the data from another one.

Regards,
Manolo
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by freak.

Code: Select all

#DTM_SETSYSTEMTIME = $1002
#GDT_VALID = 0

SysTime.SYSTEMTIME
SysTime\wDay = 19
SysTime\wMonth = 2
SysTime\wYear = 2003

SendMessage_(hWnd_Gadget, #DTM_SETSYSTEMTIME, #GDT_VALID, @SysTime)
You can see the Members of the SYSTEMTIME Structure in the Structure Viewer.#

Timo
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Manolo.

Thanks freak
Post Reply