From c3e612487ea049cb24e0b512ec0a5bb214a4748b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 19 Mar 2019 19:58:18 +0300 Subject: added CCtrlDate::SetTime --- src/mir_core/src/cctrldate.cpp | 7 ++++++- src/mir_core/src/mir_core.def | 3 ++- src/mir_core/src/mir_core64.def | 3 ++- 3 files changed, 10 insertions(+), 3 deletions(-) (limited to 'src/mir_core') diff --git a/src/mir_core/src/cctrldate.cpp b/src/mir_core/src/cctrldate.cpp index 3d02083d3c..7d30d377a9 100644 --- a/src/mir_core/src/cctrldate.cpp +++ b/src/mir_core/src/cctrldate.cpp @@ -38,7 +38,12 @@ BOOL CCtrlDate::OnNotify(int, NMHDR *pnmh) return FALSE; } -void CCtrlDate::GetSystemDate(SYSTEMTIME *pDate) +void CCtrlDate::GetTime(SYSTEMTIME *pDate) +{ + ::SendMessage(m_hwnd, DTM_GETSYSTEMTIME, 0, (LPARAM)pDate); +} + +void CCtrlDate::SetTime(SYSTEMTIME *pDate) { ::SendMessage(m_hwnd, DTM_SETSYSTEMTIME, 0, (LPARAM)pDate); } diff --git a/src/mir_core/src/mir_core.def b/src/mir_core/src/mir_core.def index 216ae8776a..687ddc287a 100644 --- a/src/mir_core/src/mir_core.def +++ b/src/mir_core/src/mir_core.def @@ -1430,5 +1430,6 @@ XmlGetChildText @1645 ??0CCtrlDate@@QAE@PAVCDlgBase@@H@Z @1646 NONAME ??1CCtrlDate@@UAE@XZ @1647 NONAME ??_7CCtrlDate@@6B@ @1648 NONAME -?GetSystemDate@CCtrlDate@@QAEXPAU_SYSTEMTIME@@@Z @1649 NONAME +?GetTime@CCtrlDate@@QAEXPAU_SYSTEMTIME@@@Z @1649 NONAME ?OnNotify@CCtrlDate@@EAEHHPAUtagNMHDR@@@Z @1650 NONAME +?SetTime@CCtrlDate@@QAEXPAU_SYSTEMTIME@@@Z @1651 NONAME diff --git a/src/mir_core/src/mir_core64.def b/src/mir_core/src/mir_core64.def index 0c53c11f90..faa7e58b4d 100644 --- a/src/mir_core/src/mir_core64.def +++ b/src/mir_core/src/mir_core64.def @@ -1430,5 +1430,6 @@ XmlGetChildText @1645 ??0CCtrlDate@@QEAA@PEAVCDlgBase@@H@Z @1646 NONAME ??1CCtrlDate@@UEAA@XZ @1647 NONAME ??_7CCtrlDate@@6B@ @1648 NONAME -?GetSystemDate@CCtrlDate@@QEAAXPEAU_SYSTEMTIME@@@Z @1649 NONAME +?GetTime@CCtrlDate@@QEAAXPEAU_SYSTEMTIME@@@Z @1649 NONAME ?OnNotify@CCtrlDate@@EEAAHHPEAUtagNMHDR@@@Z @1650 NONAME +?SetTime@CCtrlDate@@QEAAXPEAU_SYSTEMTIME@@@Z @1651 NONAME -- cgit v1.2.3