Hi Folks:
Developing on Windows 10 Pro, all C++, current VS, WIN32 not MFC.
I'm running into a problem I'm surprised I haven't seen before.
I have a dialog that's using date and time pickers.
Until I set a time, I'd like the pickers to return an indication that no time has been set. I'm not particularly picky, just something I can detect.
Apparently, whenever I send the picker a DTM_GETSYSTEMTIME message, either the time set in the picker is returned or the current time is returned.
This not what I need. I need to receive an invalid time, or something to tell me if the picker hasn't been set by the user.
I've tried sending a DTM_SETSYSTEMTIME with an invalid system time, all zeros, and both GDT_NONE and GDT_VALID.
I keep getting valid times.
I guess I haven't seen this before because I usually service the WM_NOTIFY, DTN_DATETIMECHANGE message in order to set a date and time. Now I'd like to query the control for the date directly.
Is there a method to do this?
[Edit]
The value returned by the DTM_GETSYSTEMTIME message is always GDT_VALID.
[/Edit]
Thanks
Larry
