diff options
author | George Hazan <george.hazan@gmail.com> | 2014-08-29 18:42:56 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-08-29 18:42:56 +0000 |
commit | 38200b7236c5c290d75a36cb431c78beeb98dbbd (patch) | |
tree | aa812c68e65d25d813c337dd4dc46eea320a93f8 /plugins/TabSRMM/src/generic_msghandlers.cpp | |
parent | 4cf90b042594f1a40a123f082ab3f3c37b40ee01 (diff) |
code cleaning towards smiley drawing
git-svn-id: http://svn.miranda-ng.org/main/trunk@10336 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/generic_msghandlers.cpp')
-rw-r--r-- | plugins/TabSRMM/src/generic_msghandlers.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/plugins/TabSRMM/src/generic_msghandlers.cpp b/plugins/TabSRMM/src/generic_msghandlers.cpp index 3af3c110ec..40b5ad4a0f 100644 --- a/plugins/TabSRMM/src/generic_msghandlers.cpp +++ b/plugins/TabSRMM/src/generic_msghandlers.cpp @@ -298,7 +298,7 @@ LRESULT TSAPI DM_MsgWindowCmdHandler(HWND hwndDlg, TContainerData *m_pContainer, break; case IDC_SMILEYBTN: - if (dat->doSmileys && PluginConfig.g_SmileyAddAvail) { + if (dat->bShowSmileys && PluginConfig.g_SmileyAddAvail) { MCONTACT hContact = dat->cache->getActiveContact(); if (CheckValidSmileyPack(dat->cache->getProto(), hContact) != 0) { SMADD_SHOWSEL3 smaddInfo = {0}; @@ -1050,7 +1050,7 @@ void TSAPI DM_UpdateLastMessage(const TWindowData *dat) return; TCHAR szBuf[100]; - if (dat->showTyping) { + if (dat->bShowTyping) { SendMessage(dat->pContainer->hwndStatus, SB_SETICON, 0, (LPARAM)PluginConfig.g_buttonBarIcons[ICON_DEFAULT_TYPING]); mir_sntprintf(szBuf, SIZEOF(szBuf), TranslateT("%s is typing a message..."), dat->cache->getNick()); } @@ -1353,7 +1353,7 @@ void TSAPI DM_OptionsApplied(TWindowData *dat, WPARAM wParam, LPARAM lParam) LoadTimeZone(dat); - dat->showUIElements = m_pContainer->dwFlags & CNT_HIDETOOLBAR ? 0 : 1; + dat->bShowUIElements = (m_pContainer->dwFlags & CNT_HIDETOOLBAR) == 0; dat->dwFlagsEx = M.GetByte(dat->hContact, "splitoverride", 0) ? MWF_SHOW_SPLITTEROVERRIDE : 0; dat->Panel->getVisibility(); @@ -1391,7 +1391,7 @@ void TSAPI DM_Typing(TWindowData *dat, bool fForceOff) if (dat->nTypeMode == PROTOTYPE_SELFTYPING_ON && GetTickCount() - dat->nLastTyping > TIMEOUT_TYPEOFF) DM_NotifyTyping(dat, PROTOTYPE_SELFTYPING_OFF); - if (dat->showTyping == 1) { + if (dat->bShowTyping == 1) { if (dat->nTypeSecs > 0) { dat->nTypeSecs--; if (GetForegroundWindow() == hwndContainer) @@ -1399,7 +1399,7 @@ void TSAPI DM_Typing(TWindowData *dat, bool fForceOff) } else { if (!fForceOff) { - dat->showTyping = 2; + dat->bShowTyping = 2; dat->nTypeSecs = 86400; mir_sntprintf(dat->szStatusBar, SIZEOF(dat->szStatusBar), TranslateT("%s has entered text."), dat->cache->getNick()); @@ -1417,12 +1417,12 @@ void TSAPI DM_Typing(TWindowData *dat, bool fForceOff) ReflashContainer(dat->pContainer); } } - else if (dat->showTyping == 2) { + else if (dat->bShowTyping == 2) { if (dat->nTypeSecs > 0) dat->nTypeSecs--; else { dat->szStatusBar[0] = 0; - dat->showTyping = 0; + dat->bShowTyping = 0; } UpdateStatusBar(dat); } @@ -1455,7 +1455,7 @@ void TSAPI DM_Typing(TWindowData *dat, bool fForceOff) if ((GetForegroundWindow() != hwndContainer) || (dat->pContainer->hwndStatus == 0) || (dat->pContainer->hwndActive != hwndDlg)) SendMessage(hwndContainer, DM_SETICON, (WPARAM)dat, (LPARAM)PluginConfig.g_buttonBarIcons[ICON_DEFAULT_TYPING]); - dat->showTyping = 1; + dat->bShowTyping = 1; } } @@ -1576,10 +1576,10 @@ void TSAPI DM_EventAdded(TWindowData *dat, WPARAM hContact, LPARAM lParam) if (dbei.eventType == EVENTTYPE_MESSAGE && !(dbei.flags & (DBEF_SENT))) { dat->lastMessage = dbei.timestamp; dat->szStatusBar[0] = 0; - if (dat->showTyping) { + if (dat->bShowTyping) { dat->nTypeSecs = 0; DM_Typing(dat, true); - dat->showTyping = 0; + dat->bShowTyping = 0; } HandleIconFeedback(dat, (HICON)-1); if (m_pContainer->hwndStatus) |