diff options
author | George Hazan <ghazan@miranda.im> | 2021-01-11 20:55:23 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-01-11 20:55:23 +0300 |
commit | 5d0722936cc48af5804f75f8785d3b7583420a7c (patch) | |
tree | 56f46ffa03903f35584e8f347308802e93e0b3f5 /src/mir_app | |
parent | c7120d1b26426bcb8243bd850e84041a0401bdfb (diff) |
SRMM windows: timer classes instead of perversions with WM_TIMER
Diffstat (limited to 'src/mir_app')
-rw-r--r-- | src/mir_app/src/chat_tools.cpp | 2 | ||||
-rw-r--r-- | src/mir_app/src/srmm_base.cpp | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/mir_app/src/chat_tools.cpp b/src/mir_app/src/chat_tools.cpp index 682c176aeb..d3069cc44c 100644 --- a/src/mir_app/src/chat_tools.cpp +++ b/src/mir_app/src/chat_tools.cpp @@ -231,7 +231,7 @@ static LRESULT CALLBACK PopupDlgProc(HWND hWnd, UINT message, WPARAM wParam, LPA if (g_clistApi.pfnGetEvent(si->hContact, 0))
g_clistApi.pfnRemoveEvent(si->hContact, GC_FAKE_EVENT);
- if (si->pDlg && KillTimer(si->pDlg->GetHwnd(), TIMERID_FLASHWND))
+ if (si->pDlg && si->pDlg->timerFlash.Stop())
FlashWindow(si->pDlg->GetHwnd(), FALSE);
PUDeletePopup(hWnd);
diff --git a/src/mir_app/src/srmm_base.cpp b/src/mir_app/src/srmm_base.cpp index 86ca47ce4e..62a4fcb4c2 100644 --- a/src/mir_app/src/srmm_base.cpp +++ b/src/mir_app/src/srmm_base.cpp @@ -30,6 +30,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. CSrmmBaseDialog::CSrmmBaseDialog(CMPluginBase &pPlugin, int idDialog, SESSION_INFO *si) : CDlgBase(pPlugin, idDialog), + timerFlash(this, 1), + timerType(this, 2), + m_message(this, IDC_SRMM_MESSAGE), m_nickList(this, IDC_SRMM_NICKLIST), |