April 17th, 2013, 09:29 PM
Getting date to SYSTEMTIME from DATETIMEPICK_CLASS control
It's been more than a week since i got stuck with one small stupid thing and i cannot move forward with the code.
I've created a static dialog (IDD_FVT DIALOGEX 0, 0, 319, 200) with a control as follows:
CONTROL "", IDC_FVT_dwst, DATETIMEPICK_CLASS, WS_TABSTOP | DTS_RIGHTALIGN, 219, 25, 55, 13
What i need to do now is to let the user pick the date and when he/she clicks "save" i need to be able to use that date. By the following function i'm getting the handle to this control:
HWND FVT_dwst = GetDlgItem( hwnd, IDC_FVT_dwst )
Now, having HWND FVT_dwst, how can i use the date, how can i get it from that control and which format (structure) it would be so i can then use it in my program?
I believe it should be something like SYSTEMTIME but still don't know how to get it from that **** control.
I am really desperate so i'd be very grateful for any kind of hint.
Microsoft does not say anything about this. They only say how to create or modify the DTPicker.
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!