From bc7df32e3b5a264c0eeb6a20b723cdab02cf7688 Mon Sep 17 00:00:00 2001 From: Rozhuk Ivan Date: Sun, 14 Dec 2014 05:13:25 +0000 Subject: SetWindowText(GetDlgItem(...)) -> SetDlgItemText(...) git-svn-id: http://svn.miranda-ng.org/main/trunk@11391 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Db3x_mmap/src/ui.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/Db3x_mmap/src') diff --git a/plugins/Db3x_mmap/src/ui.cpp b/plugins/Db3x_mmap/src/ui.cpp index 34d7efefd4..a591c35268 100644 --- a/plugins/Db3x_mmap/src/ui.cpp +++ b/plugins/Db3x_mmap/src/ui.cpp @@ -74,11 +74,11 @@ static INT_PTR CALLBACK sttEnterPassword(HWND hwndDlg, UINT uMsg, WPARAM wParam, EnableWindow(hwndCtrl, FALSE); hwndCtrl = GetDlgItem(hwndDlg, IDOK); EnableWindow(hwndCtrl, FALSE); - SetWindowText(GetDlgItem(hwndDlg, IDC_HEADERBAR), TranslateT("Too many errors!")); + SetDlgItemText(hwndDlg, IDC_HEADERBAR, TranslateT("Too many errors!")); } - else SetWindowText(GetDlgItem(hwndDlg, IDC_HEADERBAR), TranslateT("Password is not correct!")); + else SetDlgItemText(hwndDlg, IDC_HEADERBAR, TranslateT("Password is not correct!")); } - else SetWindowText(GetDlgItem(hwndDlg, IDC_HEADERBAR), TranslateT("Please type in your password")); + else SetDlgItemText(hwndDlg, IDC_HEADERBAR, TranslateT("Please type in your password")); oldLangID = 0; SetTimer(hwndDlg, 1, 200, NULL); @@ -145,7 +145,7 @@ static bool CheckOldPassword(HWND hwndDlg, CDb3Mmap *db) GetDlgItemText(hwndDlg, IDC_OLDPASS, buf, SIZEOF(buf)); ptrA oldPass(mir_utf8encodeT(buf)); if (!db->m_crypto->checkPassword(oldPass)) { - SetWindowText(GetDlgItem(hwndDlg, IDC_HEADERBAR), TranslateT("Wrong old password entered!")); + SetDlgItemText(hwndDlg, IDC_HEADERBAR, TranslateT("Wrong old password entered!")); return false; } } @@ -209,7 +209,7 @@ LBL_Error: GetDlgItemText(hwndDlg, IDC_USERPASS2, buf, SIZEOF(buf)); if (_tcscmp(buf2, buf)) { - SetWindowText(GetDlgItem(hwndDlg, IDC_HEADERBAR), TranslateT("Passwords do not match!")); + SetDlgItemText(hwndDlg, IDC_HEADERBAR, TranslateT("Passwords do not match!")); goto LBL_Error; } -- cgit v1.2.3