summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-03-21 13:05:51 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-03-21 13:05:51 +0300
commitb6330f119c9f253d470dac46b20335811a8e0676 (patch)
treeff4c104ba68b31df11bc4d081e6d28236aa15ffd /plugins
parentcf4f393a60b851efb3f7c6df525d2565dff0688b (diff)
unused shit removed
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Scriver/src/chat/window.cpp26
1 files changed, 5 insertions, 21 deletions
diff --git a/plugins/Scriver/src/chat/window.cpp b/plugins/Scriver/src/chat/window.cpp
index 3f77820882..ebdfc49dee 100644
--- a/plugins/Scriver/src/chat/window.cpp
+++ b/plugins/Scriver/src/chat/window.cpp
@@ -1130,7 +1130,6 @@ void CChatRoomDlg::onClick_BIU(CCtrlButton *pButton)
if (!pButton->Enabled())
return;
- MODULEINFO *pInfo = pci->MM_FindModule(m_si->pszModule);
CHARFORMAT2 cf;
cf.cbSize = sizeof(CHARFORMAT2);
cf.dwMask = CFM_BOLD | CFM_ITALIC | CFM_UNDERLINE;
@@ -1142,10 +1141,7 @@ void CChatRoomDlg::onClick_BIU(CCtrlButton *pButton)
cf.dwEffects |= CFE_ITALIC;
if (IsDlgButtonChecked(m_hwnd, IDC_UNDERLINE))
cf.dwEffects |= CFE_UNDERLINE;
- if (pInfo->bSingleFormat)
- m_message.SendMsg(EM_SETCHARFORMAT, SCF_ALL, (LPARAM)&cf);
- else
- m_message.SendMsg(EM_SETCHARFORMAT, SCF_SELECTION, (LPARAM)&cf);
+ m_message.SendMsg(EM_SETCHARFORMAT, SCF_SELECTION, (LPARAM)&cf);
}
void CChatRoomDlg::onClick_Color(CCtrlButton *pButton)
@@ -1164,10 +1160,7 @@ void CChatRoomDlg::onClick_Color(CCtrlButton *pButton)
else if (m_bFGSet) {
cf.dwMask = CFM_COLOR;
cf.crTextColor = pInfo->crColors[m_iFG];
- if (pInfo->bSingleFormat)
- m_message.SendMsg(EM_SETCHARFORMAT, SCF_ALL, (LPARAM)&cf);
- else
- m_message.SendMsg(EM_SETCHARFORMAT, SCF_SELECTION, (LPARAM)&cf);
+ m_message.SendMsg(EM_SETCHARFORMAT, SCF_SELECTION, (LPARAM)&cf);
}
}
else {
@@ -1175,10 +1168,7 @@ void CChatRoomDlg::onClick_Color(CCtrlButton *pButton)
LoadMsgDlgFont(MSGFONTID_MESSAGEAREA, nullptr, &cr);
cf.dwMask = CFM_COLOR;
cf.crTextColor = cr;
- if (pInfo->bSingleFormat)
- m_message.SendMsg(EM_SETCHARFORMAT, SCF_ALL, (LPARAM)&cf);
- else
- m_message.SendMsg(EM_SETCHARFORMAT, SCF_SELECTION, (LPARAM)&cf);
+ m_message.SendMsg(EM_SETCHARFORMAT, SCF_SELECTION, (LPARAM)&cf);
}
}
@@ -1198,19 +1188,13 @@ void CChatRoomDlg::onClick_BkColor(CCtrlButton *pButton)
else if (m_bBGSet) {
cf.dwMask = CFM_BACKCOLOR;
cf.crBackColor = pInfo->crColors[m_iBG];
- if (pInfo->bSingleFormat)
- m_message.SendMsg(EM_SETCHARFORMAT, SCF_ALL, (LPARAM)&cf);
- else
- m_message.SendMsg(EM_SETCHARFORMAT, SCF_SELECTION, (LPARAM)&cf);
+ m_message.SendMsg(EM_SETCHARFORMAT, SCF_SELECTION, (LPARAM)&cf);
}
}
else {
cf.dwMask = CFM_BACKCOLOR;
cf.crBackColor = (COLORREF)db_get_dw(0, SRMMMOD, SRMSGSET_INPUTBKGCOLOUR, SRMSGDEFSET_INPUTBKGCOLOUR);
- if (pInfo->bSingleFormat)
- m_message.SendMsg(EM_SETCHARFORMAT, SCF_ALL, (LPARAM)&cf);
- else
- m_message.SendMsg(EM_SETCHARFORMAT, SCF_SELECTION, (LPARAM)&cf);
+ m_message.SendMsg(EM_SETCHARFORMAT, SCF_SELECTION, (LPARAM)&cf);
}
}