diff options
author | Robert Pösel <robyer@seznam.cz> | 2013-06-14 12:42:40 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2013-06-14 12:42:40 +0000 |
commit | eb533fa01e57999b91cde97c676cd4afc237c8f5 (patch) | |
tree | 82ab9d91fb3a77330309c664323631f9f108ef3e /src/modules/protocols | |
parent | 5e54283e7ab71e94e7df98253a00c53c6d470e77 (diff) |
Improved and iconized some MessageBoxes.
git-svn-id: http://svn.miranda-ng.org/main/trunk@4931 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/protocols')
-rw-r--r-- | src/modules/protocols/protoopts.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/modules/protocols/protoopts.cpp b/src/modules/protocols/protoopts.cpp index aa5d75af62..b3c9c21065 100644 --- a/src/modules/protocols/protoopts.cpp +++ b/src/modules/protocols/protoopts.cpp @@ -783,9 +783,11 @@ INT_PTR CALLBACK AccMgrDlgProc(HWND hwndDlg, UINT message, WPARAM wParam, LPARAM else {
DWORD dwStatus = CallProtoServiceInt(NULL,pa->szModuleName, PS_GETSTATUS, 0, 0);
if (dwStatus >= ID_STATUS_ONLINE) {
- if (IDCANCEL == ::MessageBox(hwndDlg,
+ TCHAR buf[ 200 ];
+ mir_sntprintf(buf, SIZEOF(buf), TranslateT("Account %s is being disabled"), pa->tszAccountName);
+ if (IDNO == ::MessageBox(hwndDlg,
TranslateT("Account is online. Disable account?"),
- TranslateT("Accounts"), MB_OKCANCEL)) {
+ buf, MB_ICONWARNING | MB_DEFBUTTON2 | MB_YESNO)) {
pa->bIsEnabled = 1; //stay enabled
}
}
@@ -858,7 +860,7 @@ INT_PTR CALLBACK AccMgrDlgProc(HWND hwndDlg, UINT message, WPARAM wParam, LPARAM MB_ICONERROR | MB_OK);
break;
}
- if (IDYES == MessageBox(NULL, errMsg, buf, MB_ICONSTOP | MB_DEFBUTTON2 | MB_YESNO)) {
+ if (IDYES == MessageBox(NULL, errMsg, buf, MB_ICONWARNING | MB_DEFBUTTON2 | MB_YESNO)) {
// lock controls to avoid changes during remove process
ListBox_SetCurSel(hList, -1);
sttUpdateAccountInfo(hwndDlg, dat);
|