From 72a8c7e76a3048f733df1bf101ec6547606fdfbe Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 20 Aug 2017 21:40:02 +0300 Subject: minus ModernOpt --- src/core/stdaway/src/sendmsg.cpp | 26 -------------------------- src/core/stdaway/src/stdafx.h | 1 - 2 files changed, 27 deletions(-) (limited to 'src/core/stdaway') diff --git a/src/core/stdaway/src/sendmsg.cpp b/src/core/stdaway/src/sendmsg.cpp index 10a3c1c309..d3013ea14f 100644 --- a/src/core/stdaway/src/sendmsg.cpp +++ b/src/core/stdaway/src/sendmsg.cpp @@ -534,31 +534,6 @@ static int AwayMsgOptInitialise(WPARAM wParam, LPARAM) return 0; } -static int AwayMsgSendModernOptInit(WPARAM wParam, LPARAM) -{ - if (protoModeMsgFlags == 0) - return 0; - - static const int iBoldControls[] = - { - IDC_TXT_TITLE1, IDC_TXT_TITLE2, IDC_TXT_TITLE3, - MODERNOPT_CTRL_LAST - }; - - MODERNOPTOBJECT obj = { 0 }; - obj.cbSize = sizeof(obj); - obj.hInstance = hInst; - obj.dwFlags = MODEROPT_FLG_TCHAR | MODEROPT_FLG_NORESIZE; - obj.iSection = MODERNOPT_PAGE_STATUS; - obj.iType = MODERNOPT_TYPE_SECTIONPAGE; - obj.iBoldControls = (int*)iBoldControls; - obj.lpzTemplate = MAKEINTRESOURCEA(IDD_MODERNOPT_STATUS); - obj.pfnDlgProc = DlgProcAwayMsgOpts; - obj.lpzHelpUrl = "https://wiki.miranda-ng.org/"; - CallService(MS_MODERNOPT_ADDOBJECT, wParam, (LPARAM)&obj); - return 0; -} - static int AwayMsgSendAccountsChanged(WPARAM, LPARAM) { protoModeMsgFlags = 0; @@ -581,7 +556,6 @@ static int AwayMsgSendModulesLoaded(WPARAM, LPARAM) AwayMsgSendAccountsChanged(0, 0); HookEvent(ME_CLIST_STATUSMODECHANGE, StatusModeChange); - HookEvent(ME_MODERNOPT_INITIALIZE, AwayMsgSendModernOptInit); HookEvent(ME_OPT_INITIALISE, AwayMsgOptInitialise); return 0; } diff --git a/src/core/stdaway/src/stdafx.h b/src/core/stdaway/src/stdafx.h index 5ac853c77c..6ad64d0f36 100644 --- a/src/core/stdaway/src/stdafx.h +++ b/src/core/stdaway/src/stdafx.h @@ -58,7 +58,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include #include #include -#include #include #include -- cgit v1.2.3