diff options
author | George Hazan <ghazan@miranda.im> | 2021-01-11 20:42:49 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-01-11 20:42:49 +0300 |
commit | c7120d1b26426bcb8243bd850e84041a0401bdfb (patch) | |
tree | d624ed3cbe9ee54cf45f3e37050acc3658883d51 /src/mir_core | |
parent | d8ab91b7d95f2e1ff6fbde871671495b4c18475f (diff) |
CTimer::Stop to return true if timer was active
Diffstat (limited to 'src/mir_core')
-rw-r--r-- | src/mir_core/src/CTimer.cpp | 4 | ||||
-rw-r--r-- | src/mir_core/src/mir_core.def | 2 | ||||
-rw-r--r-- | src/mir_core/src/mir_core64.def | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/mir_core/src/CTimer.cpp b/src/mir_core/src/CTimer.cpp index e03a44666c..b157ec9ec6 100644 --- a/src/mir_core/src/CTimer.cpp +++ b/src/mir_core/src/CTimer.cpp @@ -51,9 +51,9 @@ void CTimer::Start(int elapse) ::SetTimer(m_wnd->GetHwnd(), m_idEvent, elapse, nullptr); } -void CTimer::Stop() +bool CTimer::Stop() { - ::KillTimer(m_wnd->GetHwnd(), m_idEvent); + return 0 != ::KillTimer(m_wnd->GetHwnd(), m_idEvent); } ///////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/mir_core/src/mir_core.def b/src/mir_core/src/mir_core.def index 950ceb9d55..e0aca3aaff 100644 --- a/src/mir_core/src/mir_core.def +++ b/src/mir_core/src/mir_core.def @@ -971,7 +971,7 @@ CallFunctionSync @1170 ?SetRange@CCtrlProgress@@QAEXGG@Z @1186 NONAME
?SetStep@CCtrlProgress@@QAEXG@Z @1187 NONAME
?Start@CTimer@@QAEXH@Z @1188 NONAME
-?Stop@CTimer@@QAEXXZ @1189 NONAME
+?Stop@CTimer@@QAE_NXZ @1189 NONAME
?AddTimer@CDlgBase@@IAEXPAVCTimer@@@Z @1190 NONAME
?GetItemRect@CCtrlListBox@@QAEHHPAUtagRECT@@@Z @1193 NONAME
?SetItemHeight@CCtrlListBox@@QAEXHH@Z @1194 NONAME
diff --git a/src/mir_core/src/mir_core64.def b/src/mir_core/src/mir_core64.def index 0a9b1f8baf..d0b84bfdd6 100644 --- a/src/mir_core/src/mir_core64.def +++ b/src/mir_core/src/mir_core64.def @@ -971,7 +971,7 @@ CallFunctionSync @1170 ?SetRange@CCtrlProgress@@QEAAXGG@Z @1186 NONAME
?SetStep@CCtrlProgress@@QEAAXG@Z @1187 NONAME
?Start@CTimer@@QEAAXH@Z @1188 NONAME
-?Stop@CTimer@@QEAAXXZ @1189 NONAME
+?Stop@CTimer@@QEAA_NXZ @1189 NONAME
?AddTimer@CDlgBase@@IEAAXPEAVCTimer@@@Z @1190 NONAME
?GetItemRect@CCtrlListBox@@QEAAHHPEAUtagRECT@@@Z @1193 NONAME
?SetItemHeight@CCtrlListBox@@QEAAXHH@Z @1194 NONAME
|