summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/generic_msghandlers.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-12-13 17:02:40 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-12-13 17:02:40 +0000
commitb21fd1d8a8e9bb3244f89c4030f0651aa82c3a81 (patch)
treee3a58d715c156be744f2083daaf125311ddd35c8 /plugins/TabSRMM/src/generic_msghandlers.cpp
parentbb0c52985eccfae809a08bb72938b863bc546032 (diff)
- ansi messages removed;
- strange dances with tambourines also removed git-svn-id: http://svn.miranda-ng.org/main/trunk@11369 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/generic_msghandlers.cpp')
-rw-r--r--plugins/TabSRMM/src/generic_msghandlers.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/TabSRMM/src/generic_msghandlers.cpp b/plugins/TabSRMM/src/generic_msghandlers.cpp
index 1fe0c33f41..ab9071715f 100644
--- a/plugins/TabSRMM/src/generic_msghandlers.cpp
+++ b/plugins/TabSRMM/src/generic_msghandlers.cpp
@@ -87,7 +87,7 @@ void TSAPI DM_CheckAutoHide(const TWindowData *dat, WPARAM wParam, LPARAM lParam
if (dat && lParam) {
BOOL *fResult = (BOOL *)lParam;
- if (GetWindowTextLengthA(GetDlgItem(dat->hwnd, dat->bType == SESSIONTYPE_IM ? IDC_MESSAGE : IDC_CHAT_MESSAGE)) > 0) {
+ if (GetWindowTextLength(GetDlgItem(dat->hwnd, dat->bType == SESSIONTYPE_IM ? IDC_MESSAGE : IDC_CHAT_MESSAGE)) > 0) {
*fResult = FALSE;
return; // text entered in the input area -> prevent autohide/cose
}
@@ -798,7 +798,7 @@ void TSAPI DM_InitRichEdit(TWindowData *dat)
COLORREF colour = fIsChat ? g_Settings.crLogBackground : dat->pContainer->theme.bg;
COLORREF inputcharcolor;
- if (!fIsChat && GetWindowTextLengthA(hwndEdit) > 0)
+ if (!fIsChat && GetWindowTextLength(hwndEdit) > 0)
szStreamOut = Message_GetFromStream(hwndEdit, dat, (CP_UTF8 << 16) | (SF_RTFNOOBJS | SFF_PLAINRTF | SF_USECODEPAGE));
SendMessage(hwndLog, EM_SETBKGNDCOLOR, 0, colour);
@@ -975,7 +975,7 @@ void TSAPI DM_ScrollToBottom(TWindowData *dat, WPARAM wParam, LPARAM lParam)
if (wParam == 1 && lParam == 1) {
RECT rc;
GetClientRect(hwnd, &rc);
- int len = GetWindowTextLengthA(hwnd);
+ int len = GetWindowTextLength(hwnd);
SendMessage(hwnd, EM_SETSEL, len - 1, len - 1);
}