summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
Diffstat (limited to 'protocols')
-rw-r--r--protocols/SkypeClassic/src/alogon.cpp4
-rw-r--r--protocols/Twitter/src/ui.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/protocols/SkypeClassic/src/alogon.cpp b/protocols/SkypeClassic/src/alogon.cpp
index 6fc21d2cce..d6ca9c3a9b 100644
--- a/protocols/SkypeClassic/src/alogon.cpp
+++ b/protocols/SkypeClassic/src/alogon.cpp
@@ -69,13 +69,13 @@ static BOOL CALLBACK EnumWindowsProc(HWND hWnd, LPARAM lParam)
if(!db_get_ws(NULL,SKYPE_PROTONAME,"LoginUserName",&dbv))
{
- SendMessageW(userName, WM_SETTEXT, 0, (LPARAM)dbv.pwszVal);
+ SetWindowTextW(userName, dbv.pwszVal);
db_free(&dbv);
}
if(!db_get_ws(NULL,SKYPE_PROTONAME,"LoginPassword",&dbv))
{
- SendMessageW(password, WM_SETTEXT, 0, (LPARAM)dbv.pwszVal);
+ SetWindowTextW(password, dbv.pwszVal);
db_free(&dbv);
SendMessageW(password, WM_CHAR, 13, 0);
}
diff --git a/protocols/Twitter/src/ui.cpp b/protocols/Twitter/src/ui.cpp
index 3314e72dde..5b0d962583 100644
--- a/protocols/Twitter/src/ui.cpp
+++ b/protocols/Twitter/src/ui.cpp
@@ -113,7 +113,7 @@ INT_PTR CALLBACK tweet_proc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam
// Set window title
TCHAR title[512];
mir_sntprintf(title, SIZEOF(title), _T("Send Tweet for %s"), proto->m_tszUserName);
- SendMessage(hwndDlg, WM_SETTEXT, 0, (LPARAM)title);
+ SetWindowText(hwndDlg, title);
return true;
case WM_COMMAND: