summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-10-02 18:01:24 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-10-02 18:01:24 +0000
commitef8b008cdbe92cab970b3013c930c322ea3948b1 (patch)
treebdde099877f082df958d9b7f1c24cb33b81ae264 /src
parentd73bcd9dc558137967549773fe8d4a2da06b28fc (diff)
CDlgBase::AddTimer added
git-svn-id: http://svn.miranda-ng.org/main/trunk@17342 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
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()