Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SysDateTimePick32 Event
#1
How do you trigger action in a dialog when a date has been selected in a SysDateTimePick32?
#2
http://msdn.microsoft.com/en-us/library ... 85%29.aspx
#3
What should it be?

I got it to trigger with this by finding the right number outputting lParam:

sel lParam
case 70643276
out "CHANGE"

But then when I closed dialog and reopened...different numbers

sel DTN_DATETIMECHANGE doesn't work.

-jim
#4
not tested

Macro Macro1614
Code:
Copy      Help
sel message
,case WM_NOTIFY
,NMHDR* nh=+lParam
,sel nh.idFrom
,,case controlId
,,sel nh.code
,,,case DTN_DATETIMECHANGE
,,,NMDATETIMECHANGE* p=+nh
,,,if p.dwFlags=GDT_VALID
,,,,DATE d.fromsystemtime(p.st)
,,,,out d
,,,else out "empty"
#5
Works, but double triggers. Doesn't effect the program...but just wanted to let you know.

Thanks again for your help.

-jim


Forum Jump:


Users browsing this thread: 1 Guest(s)