From 451c98173d83ee1618d7923890e803dd7067de40 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 29 Jul 2013 16:41:17 +0000 Subject: 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 --- plugins/SendScreenshotPlus/src/dlg_msgbox.cpp | 63 +++++++++------------------ 1 file changed, 21 insertions(+), 42 deletions(-) (limited to 'plugins/SendScreenshotPlus/src/dlg_msgbox.cpp') 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"); } } -- cgit v1.2.3