From ff66933b6399d8cd5636622d678c66960ae87fc5 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 10 May 2022 16:07:16 +0300 Subject: =?UTF-8?q?=D0=BF=D0=B5=D1=80=D0=B5=D0=B8=D0=BC=D0=B5=D0=BD=D0=BE?= =?UTF-8?q?=D0=B2=D0=B0=D0=BD=D0=B8=D0=B5=20=D0=BC=D0=BE=D0=B4=D1=83=D0=BB?= =?UTF-8?q?=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mir_core/src/Windows/CCtrlDate.cpp | 49 ++++++++++++++++++++++++++++++++++ src/mir_core/src/Windows/cctrldate.cpp | 49 ---------------------------------- 2 files changed, 49 insertions(+), 49 deletions(-) create mode 100644 src/mir_core/src/Windows/CCtrlDate.cpp delete mode 100644 src/mir_core/src/Windows/cctrldate.cpp (limited to 'src') diff --git a/src/mir_core/src/Windows/CCtrlDate.cpp b/src/mir_core/src/Windows/CCtrlDate.cpp new file mode 100644 index 0000000000..1967cb5678 --- /dev/null +++ b/src/mir_core/src/Windows/CCtrlDate.cpp @@ -0,0 +1,49 @@ +/* + +Object UI extensions +Copyright (c) 2008 Victor Pavlychko, George Hazan +Copyright (C) 2012-22 Miranda NG team + +This program is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +as published by the Free Software Foundation; either version 2 +of the License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +*/ + +#include "../stdafx.h" + +///////////////////////////////////////////////////////////////////////////////////////// +// CCtrlDate class + +CCtrlDate::CCtrlDate(CDlgBase *dlg, int ctrlId) : + CCtrlData(dlg, ctrlId) +{} + +BOOL CCtrlDate::OnNotify(int, NMHDR *pnmh) +{ + if (pnmh->code == DTN_DATETIMECHANGE) { + NotifyChange(); + return TRUE; + } + return FALSE; +} + +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/Windows/cctrldate.cpp b/src/mir_core/src/Windows/cctrldate.cpp deleted file mode 100644 index 1967cb5678..0000000000 --- a/src/mir_core/src/Windows/cctrldate.cpp +++ /dev/null @@ -1,49 +0,0 @@ -/* - -Object UI extensions -Copyright (c) 2008 Victor Pavlychko, George Hazan -Copyright (C) 2012-22 Miranda NG team - -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation; either version 2 -of the License, or (at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - -*/ - -#include "../stdafx.h" - -///////////////////////////////////////////////////////////////////////////////////////// -// CCtrlDate class - -CCtrlDate::CCtrlDate(CDlgBase *dlg, int ctrlId) : - CCtrlData(dlg, ctrlId) -{} - -BOOL CCtrlDate::OnNotify(int, NMHDR *pnmh) -{ - if (pnmh->code == DTN_DATETIMECHANGE) { - NotifyChange(); - return TRUE; - } - return FALSE; -} - -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); -} -- cgit v1.2.3