How do you extract data from a Date/Time widget from a C++ MFC dialog in VS2008
- by jkerian
This is a fairly basic question, but I haven't been able to find any from-to guides from VS6-VS2008. I have a dialog box that contains controls of various types, I've discovered the way of auto-generating OnBnClickedMyFooBarButtonHere() methods via the Properties dialog on the dialog editor.
I can also use CWnd::GetDlgItemText(int ,CString &) to extract text, and the oddly paramaterized GetDlgItemInt(int, bool*, bool) to extract signed integers, but is there really no other option for a Date or Time value other than
Manually adding in all the DDX_ crap that the class wizard used to do in VS6
Using GetDlgItemText and then parsing whatever it gives me?