diff options
author | George Hazan <george.hazan@gmail.com> | 2014-01-16 08:37:51 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-01-16 08:37:51 +0000 |
commit | 38ab4dde6b080defc5e7d7b286110d580cabdaa0 (patch) | |
tree | 4890eaba00645f597e91a888277d461ba3d923c0 /plugins/Scriver/src/msgtimedout.cpp | |
parent | 2f30799b091475f1086b756bba4b43ebacd3aefc (diff) |
kernel chat engine, part 2 - scriver
git-svn-id: http://svn.miranda-ng.org/main/trunk@7676 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Scriver/src/msgtimedout.cpp')
-rw-r--r-- | plugins/Scriver/src/msgtimedout.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/Scriver/src/msgtimedout.cpp b/plugins/Scriver/src/msgtimedout.cpp index 2837713e39..317d8b6ef4 100644 --- a/plugins/Scriver/src/msgtimedout.cpp +++ b/plugins/Scriver/src/msgtimedout.cpp @@ -37,11 +37,11 @@ INT_PTR CALLBACK ErrorDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPar TranslateDialogDefault(hwndDlg);
if (ewd != NULL) {
ShowWindow(GetParent(ewd->hwndParent), SW_RESTORE);
- if (ewd->szDescription) {
+ if (ewd->szDescription)
SetDlgItemText(hwndDlg, IDC_ERRORTEXT, ewd->szDescription);
- } else {
+ else
SetDlgItemText(hwndDlg, IDC_ERRORTEXT, TranslateT("An unknown error has occurred."));
- }
+
if (ewd->szText) {
SETTEXTEX st = {0};
st.flags = ST_DEFAULT;
@@ -49,11 +49,11 @@ INT_PTR CALLBACK ErrorDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPar SendDlgItemMessage(hwndDlg, IDC_MSGTEXT, EM_SETTEXTEX, (WPARAM) &st, (LPARAM)ewd->szText);
}
- if (ewd->szName) {
+ if (ewd->szName)
mir_sntprintf(szText, SIZEOF(szText), _T("%s - %s"), TranslateT("Send Error"), ewd->szName);
- } else {
+ else
mir_sntprintf(szText, SIZEOF(szText), _T("%s"), TranslateT("Send Error"));
- }
+
SetWindowText(hwndDlg, szText);
GetWindowRect(hwndDlg, &rc);
GetWindowRect(GetParent(ewd->hwndParent), &rcParent);
|