\src\Client\StkUI\Dialog\DownloadDlg.cpp
step 1.资源ID
step 2:变量
G:\stock\TskingVS2019\src\Client\StkUI\Dialog\downloaddlg.h
class CDownloadDlg : public CXFDialog
{
// Construction
public:
CDownloadDlg(CWnd* pParent = NULL); // standard constructor
virtual ~CDownloadDlg();
void SetInitDownloadTime( CSPTime tmDLBegin, CSPTime tmDLEnd, BOOL bAutoRun );
static HANDLE m_hEventKillDownloadThread;
static HANDLE m_hEventDownloadThreadKilled;
// Dialog Data
//{{AFX_DATA(CDownloadDlg)
enum { IDD = IDD_DOWNLOAD };
CDateTimeCtrl m_dtctrlDayTo;
CDateTimeCtrl m_dtctrlDayFrom;
CSPTime m_tmDayFrom;
CSPTime m_tmDayTo;
CSPTime m_tmMin5From;
CSPTime m_tmMin5To;
//}}AFX_DATA
step 3:关联控件id和变量
G:\stock\TskingVS2019\src\Client\StkUI\Dialog\DownloadDlg.cpp
void CDownloadDlg::DoDataExchange(CDataExchange* pDX)
{
CXFDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CDownloadDlg)
DDX_Control(pDX, IDC_TIME_DAYTO, m_dtctrlDayTo);
DDX_Control(pDX, IDC_TIME_DAYFROM, m_dtctrlDayFrom);
DDX_DateTimeCtrl(pDX, IDC_TIME_DAYFROM, m_tmDayFrom);
DDX_DateTimeCtrl(pDX, IDC_TIME_DAYTO, m_tmDayTo);
DDX_DateTimeCtrl(pDX, IDC_TIME_MIN5FROM, m_tmMin5From);
DDX_DateTimeCtrl(pDX, IDC_TIME_MIN5TO, m_tmMin5To);
//}}AFX_DATA_MAP
}
CDateTimeCtrl Class
https://docs.microsoft.com/en-us/cpp/mfc/reference/cdatetimectrl-class?view=vs-2019