From eb533fa01e57999b91cde97c676cd4afc237c8f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Fri, 14 Jun 2013 12:42:40 +0000 Subject: Improved and iconized some MessageBoxes. git-svn-id: http://svn.miranda-ng.org/main/trunk@4931 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/protocols/protoopts.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/modules/protocols') 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); -- cgit v1.2.3