summaryrefslogtreecommitdiff
path: root/plugins/SendScreenshotPlus/src/dlg_msgbox.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-07-29 16:41:17 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-07-29 16:41:17 +0000
commit451c98173d83ee1618d7923890e803dd7067de40 (patch)
treeb747494401925ec184b45a6d22d24683d8b3e38f /plugins/SendScreenshotPlus/src/dlg_msgbox.cpp
parent82637f50c80f6b9b7dad3d3d49535bab277596aa (diff)
resource clearance moved to ME_SYSTEM_PRESHUTDOWN instead of ME_SYSTEM_OKTOEXIT
git-svn-id: http://svn.miranda-ng.org/main/trunk@5527 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SendScreenshotPlus/src/dlg_msgbox.cpp')
-rw-r--r--plugins/SendScreenshotPlus/src/dlg_msgbox.cpp63
1 files changed, 21 insertions, 42 deletions
diff --git a/plugins/SendScreenshotPlus/src/dlg_msgbox.cpp b/plugins/SendScreenshotPlus/src/dlg_msgbox.cpp
index de6d03b297..4ada4d76e9 100644
--- a/plugins/SendScreenshotPlus/src/dlg_msgbox.cpp
+++ b/plugins/SendScreenshotPlus/src/dlg_msgbox.cpp
@@ -112,77 +112,56 @@ void MakePopupAction(POPUPACTION &pa, INT id)
pa.wParam = MAKEWORD(id, BN_CLICKED);
pa.lParam = 0;
- switch (id)
- {
+ switch (id) {
case IDOK:
- {
- pa.lchIcon = IcoLib_GetIcon(ICO_PLUG_OK);
- mir_strcpy(pa.lpzTitle, MODNAME"/Ok");
- }
+ pa.lchIcon = IcoLib_GetIcon(ICO_PLUG_OK);
+ lstrcpyA(pa.lpzTitle, MODNAME"/Ok");
break;
case IDCLOSE:
case IDCANCEL:
- {
- pa.lchIcon = IcoLib_GetIcon(ICO_PLUG_CANCEL);
- mir_strcpy(pa.lpzTitle, MODNAME"/Cancel");
- }
+ pa.lchIcon = IcoLib_GetIcon(ICO_PLUG_CANCEL);
+ lstrcpyA(pa.lpzTitle, MODNAME"/Cancel");
break;
case IDABORT:
- {
- pa.lchIcon = IcoLib_GetIcon(ICO_PLUG_CANCEL);
- mir_strcpy(pa.lpzTitle, MODNAME"/Abort");
- }
+ pa.lchIcon = IcoLib_GetIcon(ICO_PLUG_CANCEL);
+ lstrcpyA(pa.lpzTitle, MODNAME"/Abort");
break;
case IDRETRY:
- {
- pa.lchIcon = IcoLib_GetIcon(ICO_PLUG_UPDATE);
- mir_strcpy(pa.lpzTitle, MODNAME"/Retry");
- }
+ pa.lchIcon = IcoLib_GetIcon(ICO_PLUG_UPDATE);
+ lstrcpyA(pa.lpzTitle, MODNAME"/Retry");
break;
case IDIGNORE:
- {
- pa.lchIcon = IcoLib_GetIcon(ICO_PLUG_OK);
- mir_strcpy(pa.lpzTitle, MODNAME"/Ignore");
- }
+ pa.lchIcon = IcoLib_GetIcon(ICO_PLUG_OK);
+ lstrcpyA(pa.lpzTitle, MODNAME"/Ignore");
break;
case IDYES:
- {
- pa.lchIcon = IcoLib_GetIcon(ICO_PLUG_OK);
- mir_strcpy(pa.lpzTitle, MODNAME"/Yes");
- }
+ pa.lchIcon = IcoLib_GetIcon(ICO_PLUG_OK);
+ lstrcpyA(pa.lpzTitle, MODNAME"/Yes");
break;
case IDNO:
- {
- pa.lchIcon = IcoLib_GetIcon(ICO_PLUG_CANCEL);
- mir_strcpy(pa.lpzTitle, MODNAME"/No");
- }
+ pa.lchIcon = IcoLib_GetIcon(ICO_PLUG_CANCEL);
+ lstrcpyA(pa.lpzTitle, MODNAME"/No");
break;
case IDHELP:
- {
- pa.lchIcon = IcoLib_GetIcon(ICO_PLUG_CANCEL);
- mir_strcpy(pa.lpzTitle, MODNAME"/Help");
- }
+ pa.lchIcon = IcoLib_GetIcon(ICO_PLUG_CANCEL);
+ lstrcpyA(pa.lpzTitle, MODNAME"/Help");
break;
case IDALL:
- {
- pa.lchIcon = IcoLib_GetIcon(ICO_PLUG_OK);
- mir_strcpy(pa.lpzTitle, MODNAME"/All");
- }
+ pa.lchIcon = IcoLib_GetIcon(ICO_PLUG_OK);
+ lstrcpyA(pa.lpzTitle, MODNAME"/All");
break;
case IDNONE:
- {
- pa.lchIcon = IcoLib_GetIcon(ICO_PLUG_CANCEL);
- mir_strcpy(pa.lpzTitle, MODNAME"/None");
- }
+ pa.lchIcon = IcoLib_GetIcon(ICO_PLUG_CANCEL);
+ lstrcpyA(pa.lpzTitle, MODNAME"/None");
}
}