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?
Is there a standard approach to this?
In the past I've done "DDX_DateTimeCtrl(pDX, IDC_DATETIMEPICKER2, m_TimePicker);" in the DoDataExchange override, it seems a bit strange that there is no direct analogue.