2
votes

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.

1

1 Answers

1
votes

What control had you previously used to get a date and time? Essentially any 32-bit ActiveX control should still be usable (in pretty much the same way) with a newer version of VS.