diff options
author | René Schümann <white06tiger@gmail.com> | 2014-12-25 00:30:09 +0000 |
---|---|---|
committer | René Schümann <white06tiger@gmail.com> | 2014-12-25 00:30:09 +0000 |
commit | f1854df3ba57b0358c893884d56d6826e25f344d (patch) | |
tree | c78083d6fc677729fc86f895ab4695c899ed86e3 /plugins/SendScreenshotPlus/src/dlg_msgbox.cpp | |
parent | e5c1ba56b7f6ef24279b5e7cda3759b2e68e4c8d (diff) |
SendSS:
* global.h is now more global
removed Main.h dependency
removed MODNAME define (just a dupe of SZ_SENDSS)
hInst -> g_hSendSS
myGlobals -> g_myGlobals
hNetlibUser -> g_hNetlibUser
* restructured Main.cpp by reordering functions to be more logically placed
* Main.h now only holds DLL_EXPORT functions
git-svn-id: http://svn.miranda-ng.org/main/trunk@11608 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SendScreenshotPlus/src/dlg_msgbox.cpp')
-rw-r--r-- | plugins/SendScreenshotPlus/src/dlg_msgbox.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/plugins/SendScreenshotPlus/src/dlg_msgbox.cpp b/plugins/SendScreenshotPlus/src/dlg_msgbox.cpp index 2014dfb8d5..65df1437a5 100644 --- a/plugins/SendScreenshotPlus/src/dlg_msgbox.cpp +++ b/plugins/SendScreenshotPlus/src/dlg_msgbox.cpp @@ -109,53 +109,53 @@ static void MakePopupAction(POPUPACTION &pa, int id) switch (id) { case IDOK: pa.lchIcon = Skin_GetIcon(ICO_BTN_OK); - mir_strcpy(pa.lpzTitle, MODNAME"/Ok"); + mir_strcpy(pa.lpzTitle, SZ_SENDSS"/Ok"); break; case IDCLOSE: case IDCANCEL: pa.lchIcon = Skin_GetIcon(ICO_BTN_CANCEL); - mir_strcpy(pa.lpzTitle, MODNAME"/Cancel"); + mir_strcpy(pa.lpzTitle, SZ_SENDSS"/Cancel"); break; case IDABORT: pa.lchIcon = Skin_GetIcon(ICO_BTN_CANCEL); - mir_strcpy(pa.lpzTitle, MODNAME"/Abort"); + mir_strcpy(pa.lpzTitle, SZ_SENDSS"/Abort"); break; case IDRETRY: pa.lchIcon = Skin_GetIcon(ICO_BTN_UPDATE); - mir_strcpy(pa.lpzTitle, MODNAME"/Retry"); + mir_strcpy(pa.lpzTitle, SZ_SENDSS"/Retry"); break; case IDIGNORE: pa.lchIcon = Skin_GetIcon(ICO_BTN_OK); - mir_strcpy(pa.lpzTitle, MODNAME"/Ignore"); + mir_strcpy(pa.lpzTitle, SZ_SENDSS"/Ignore"); break; case IDYES: pa.lchIcon = Skin_GetIcon(ICO_BTN_OK); - mir_strcpy(pa.lpzTitle, MODNAME"/Yes"); + mir_strcpy(pa.lpzTitle, SZ_SENDSS"/Yes"); break; case IDNO: pa.lchIcon = Skin_GetIcon(ICO_BTN_CANCEL); - mir_strcpy(pa.lpzTitle, MODNAME"/No"); + mir_strcpy(pa.lpzTitle, SZ_SENDSS"/No"); break; case IDHELP: pa.lchIcon = Skin_GetIcon(ICO_BTN_CANCEL); - mir_strcpy(pa.lpzTitle, MODNAME"/Help"); + mir_strcpy(pa.lpzTitle, SZ_SENDSS"/Help"); break; case IDALL: pa.lchIcon = Skin_GetIcon(ICO_BTN_OK); - mir_strcpy(pa.lpzTitle, MODNAME"/All"); + mir_strcpy(pa.lpzTitle, SZ_SENDSS"/All"); break; case IDNONE: pa.lchIcon = Skin_GetIcon(ICO_BTN_CANCEL); - mir_strcpy(pa.lpzTitle, MODNAME"/None"); + mir_strcpy(pa.lpzTitle, SZ_SENDSS"/None"); } } @@ -628,12 +628,12 @@ INT_PTR MsgBoxService(WPARAM wParam, LPARAM lParam) // Shall the MessageBox displayed as popup? if (!(pMsgBox->uType & (MB_INFOBAR|MB_NOPOPUP)) && // message box can be a popup? ServiceExists(MS_POPUP_ADDPOPUPT) && // popups exist? - myGlobals.PopupActionsExist == 1 && // popup support ext stuct? + g_myGlobals.PopupActionsExist == 1 && // popup support ext stuct? (db_get_dw(NULL, "Popup","Actions", 0) & 1) && // popup++ actions on? - db_get_b(NULL, MODNAME, SET_POPUPMSGBOX, DEFVAL_POPUPMSGBOX)) // user likes popups? - return DialogBoxParam(hInst, MAKEINTRESOURCE(IDD_MSGBOXDUMMI), pMsgBox->hParent, MsgBoxPop, lParam); + db_get_b(NULL, SZ_SENDSS, SET_POPUPMSGBOX, DEFVAL_POPUPMSGBOX)) // user likes popups? + return DialogBoxParam(g_hSendSS, MAKEINTRESOURCE(IDD_MSGBOXDUMMI), pMsgBox->hParent, MsgBoxPop, lParam); - return DialogBoxParam(hInst, MAKEINTRESOURCE(IDD_MSGBOX), pMsgBox->hParent, MsgBoxProc, lParam); + return DialogBoxParam(g_hSendSS, MAKEINTRESOURCE(IDD_MSGBOX), pMsgBox->hParent, MsgBoxProc, lParam); } return -1; } @@ -674,7 +674,7 @@ INT_PTR CALLBACK MsgBox(HWND hParent, UINT uType, LPCTSTR pszTitle, LPCTSTR pszI INT_PTR CALLBACK MsgErr(HWND hParent, LPCTSTR pszFormat, ...) { TCHAR tszTitle[MAX_SECONDLINE], tszMsg[MAX_SECONDLINE]; - mir_sntprintf(tszTitle, SIZEOF(tszMsg),_T("%s - %s") ,_T(MODNAME), TranslateT("Error")); + mir_sntprintf(tszTitle, SIZEOF(tszMsg),_T("%s - %s") ,_T(SZ_SENDSS), TranslateT("Error")); va_list vl; va_start(vl, pszFormat); |