summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mir_core/src/mir_core.def1
-rw-r--r--src/mir_core/src/mir_core64.def1
-rw-r--r--src/mir_core/src/ui_utils.cpp7
3 files changed, 9 insertions, 0 deletions
diff --git a/src/mir_core/src/mir_core.def b/src/mir_core/src/mir_core.def
index 1c291ab133..21a64dc25f 100644
--- a/src/mir_core/src/mir_core.def
+++ b/src/mir_core/src/mir_core.def
@@ -1030,3 +1030,4 @@ CallFunctionSync @1170
?SetStep@CProgress@@QAEXG@Z @1187 NONAME
?Start@CTimer@@QAEXH@Z @1188 NONAME
?Stop@CTimer@@QAEXXZ @1189 NONAME
+?AddTimer@CDlgBase@@IAEXPAVCTimer@@@Z @1190 NONAME
diff --git a/src/mir_core/src/mir_core64.def b/src/mir_core/src/mir_core64.def
index d2662a7730..50b1d8ed5d 100644
--- a/src/mir_core/src/mir_core64.def
+++ b/src/mir_core/src/mir_core64.def
@@ -1030,3 +1030,4 @@ CallFunctionSync @1170
?SetStep@CProgress@@QEAAXG@Z @1187 NONAME
?Start@CTimer@@QEAAXH@Z @1188 NONAME
?Stop@CTimer@@QEAAXXZ @1189 NONAME
+?AddTimer@CDlgBase@@IEAAXPEAVCTimer@@@Z @1190 NONAME
diff --git a/src/mir_core/src/ui_utils.cpp b/src/mir_core/src/ui_utils.cpp
index 5e58783be2..ddc1088705 100644
--- a/src/mir_core/src/ui_utils.cpp
+++ b/src/mir_core/src/ui_utils.cpp
@@ -288,6 +288,11 @@ CCtrlBase* CDlgBase::FindControl(int idCtrl)
return m_controls.find(&search);
}
+void CDlgBase::AddTimer(CTimer *timer)
+{
+ m_timers.insert(timer);
+}
+
CTimer* CDlgBase::FindTimer(int idEvent)
{
CTimer search(NULL, idEvent);
@@ -738,6 +743,8 @@ BOOL CCtrlHyperlink::OnCommand(HWND, WORD, WORD)
CTimer::CTimer(CDlgBase *wnd, int idEvent)
: m_wnd(wnd), m_idEvent(idEvent)
{
+ if (wnd)
+ wnd->AddTimer(this);
}
BOOL CTimer::OnTimer()