summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/m_gui.h3
-rw-r--r--libs/win32/mir_core.libbin454874 -> 455180 bytes
-rw-r--r--libs/win64/mir_core.libbin459530 -> 459846 bytes
-rw-r--r--src/mir_core/src/cctrldate.cpp7
-rw-r--r--src/mir_core/src/mir_core.def3
-rw-r--r--src/mir_core/src/mir_core64.def3
6 files changed, 12 insertions, 4 deletions
diff --git a/include/m_gui.h b/include/m_gui.h
index 60ab61d3d3..4fa9f8c667 100644
--- a/include/m_gui.h
+++ b/include/m_gui.h
@@ -825,7 +825,8 @@ class MIR_CORE_EXPORT CCtrlDate : public CCtrlData
public:
CCtrlDate(CDlgBase *dlg, int ctrlId);
- void GetSystemDate(SYSTEMTIME*);
+ void GetTime(SYSTEMTIME*);
+ void SetTime(SYSTEMTIME*);
};
/////////////////////////////////////////////////////////////////////////////////////////
diff --git a/libs/win32/mir_core.lib b/libs/win32/mir_core.lib
index 2601b41e54..c1ded084ad 100644
--- a/libs/win32/mir_core.lib
+++ b/libs/win32/mir_core.lib
Binary files differ
diff --git a/libs/win64/mir_core.lib b/libs/win64/mir_core.lib
index acb3b4dbbf..9c13f2f0a9 100644
--- a/libs/win64/mir_core.lib
+++ b/libs/win64/mir_core.lib
Binary files differ
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