From 28e010c9383d28954e8d345c71a73c1b70efa961 Mon Sep 17 00:00:00 2001 From: dartraiden Date: Sat, 26 Aug 2017 00:21:29 +0300 Subject: TabSRMM: remove useless "About" dialog --- plugins/TabSRMM/res/resource.rc | 18 --------------- plugins/TabSRMM/src/container.cpp | 48 --------------------------------------- plugins/TabSRMM/src/controls.cpp | 7 ------ plugins/TabSRMM/src/resource.h | 5 ---- 4 files changed, 78 deletions(-) (limited to 'plugins') diff --git a/plugins/TabSRMM/res/resource.rc b/plugins/TabSRMM/res/resource.rc index 1347eb1094..c5b4705d84 100644 --- a/plugins/TabSRMM/res/resource.rc +++ b/plugins/TabSRMM/res/resource.rc @@ -502,20 +502,6 @@ BEGIN GROUPBOX "Tab layout tweaks",IDC_STATIC,3,35,297,118 END -IDD_ABOUT DIALOGEX 0, 0, 228, 140 -STYLE DS_SETFONT | DS_MODALFRAME | DS_3DLOOK | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU -EXSTYLE WS_EX_CONTROLPARENT -CAPTION "About TabSRMM" -FONT 8, "MS Shell Dlg", 0, 0, 0x1 -BEGIN - LTEXT "",IDC_STATIC,0,30,228,110,NOT WS_GROUP - CONTROL "",IDC_HEADERBAR,"MHeaderbarCtrl",WS_TABSTOP,0,0,228,30 - DEFPUSHBUTTON "OK",IDOK,168,123,55,14 - CTEXT "Copyright 2004-2011 by the Miranda IM project, 2012-2017 by the Miranda NG project.",IDC_COPYRIGHT,5,39,217,47 - CONTROL "Support and latest version information",IDC_SUPPORT, - "Hyperlink",WS_TABSTOP | 0x1,18,91,192,12 -END - IDD_OPT_SKIN DIALOGEX 0, 0, 303, 224 STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD EXSTYLE WS_EX_CONTROLPARENT @@ -920,10 +906,6 @@ BEGIN MENUITEM SEPARATOR MENUITEM "Save current window position as default", ID_OPTIONS_SAVECURRENTWINDOWPOSITIONASDEFAULT END - POPUP "Help" - BEGIN - MENUITEM "About TabSRMM...", ID_HELP_ABOUTTABSRMM - END END diff --git a/plugins/TabSRMM/src/container.cpp b/plugins/TabSRMM/src/container.cpp index 099332b8a9..6eb700c8c6 100644 --- a/plugins/TabSRMM/src/container.cpp +++ b/plugins/TabSRMM/src/container.cpp @@ -473,50 +473,6 @@ static LRESULT CALLBACK ContainerWndProc(HWND hwndDlg, UINT msg, WPARAM wParam, return mir_callNextSubclass(hwndDlg, ContainerWndProc, msg, wParam, lParam); } -///////////////////////////////////////////////////////////////////////////////////////// - -class CAboutDlg : public CDlgBase -{ - CCtrlButton m_btnSupport; - -public: - CAboutDlg() : - CDlgBase(g_hInst, IDD_ABOUT), - m_btnSupport(this, IDC_SUPPORT) - { - m_btnSupport.OnClick = Callback(this, &CAboutDlg::OnClick_Support); - } - - virtual void OnInitDialog() override - { - MFileVersion v; - Miranda_GetFileVersion(&v); - - wchar_t tStr[80]; - mir_snwprintf(tStr, L"%s %d.%d.%d.%d [build %d]", TranslateT("Version"), __MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM, v[3]); - SetDlgItemText(m_hwnd, IDC_HEADERBAR, tStr); - - Window_SetSkinIcon_IcoLib(m_hwnd, SKINICON_EVENT_MESSAGE); - } - - virtual INT_PTR DlgProc(UINT uMsg, WPARAM wParam, LPARAM lParam) override - { - switch (uMsg) { - case WM_CTLCOLOREDIT: - case WM_CTLCOLORSTATIC: - SetTextColor((HDC)wParam, RGB(60, 60, 150)); - SetBkColor((HDC)wParam, GetSysColor(COLOR_WINDOW)); - return (INT_PTR)GetSysColorBrush(COLOR_WINDOW); - } - return CDlgBase::DlgProc(uMsg, wParam, lParam); - } - - void OnClick_Support(CCtrlButton*) - { - Utils_OpenUrl("https://wiki.miranda-ng.org/index.php?title=Plugin:TabSRMM"); - } -}; - ///////////////////////////////////////////////////////////////////////////////////////// // container window procedure... @@ -1127,10 +1083,6 @@ panel_found: return 1; } break; - - case ID_HELP_ABOUTTABSRMM: - (new CAboutDlg())->Show(); - break; } if (pContainer->dwFlags != dwOldFlags) diff --git a/plugins/TabSRMM/src/controls.cpp b/plugins/TabSRMM/src/controls.cpp index b780f28f2e..5e8a8eb8de 100644 --- a/plugins/TabSRMM/src/controls.cpp +++ b/plugins/TabSRMM/src/controls.cpp @@ -573,13 +573,6 @@ void CMenuBar::checkButtons() m_TbButtons[6].idCommand = 106; m_TbButtons[6].dwData = reinterpret_cast(::GetSubMenu(PluginConfig.getMenuBar(), 3)); - m_TbButtons[7].iBitmap = I_IMAGENONE; - m_TbButtons[7].iString = (INT_PTR)TranslateT("Help"); - m_TbButtons[7].fsState = TBSTATE_ENABLED; - m_TbButtons[7].fsStyle = BTNS_DROPDOWN | BTNS_AUTOSIZE; - m_TbButtons[7].idCommand = 107; - m_TbButtons[7].dwData = reinterpret_cast(::GetSubMenu(PluginConfig.getMenuBar(), 4)); - m_buttonsInit = true; } diff --git a/plugins/TabSRMM/src/resource.h b/plugins/TabSRMM/src/resource.h index a5f3c241d5..ebe8f5007e 100644 --- a/plugins/TabSRMM/src/resource.h +++ b/plugins/TabSRMM/src/resource.h @@ -7,7 +7,6 @@ #define IDOK2 2 #define IDD_USERPREFS1 3 #define IDD_TABCONFIG 4 -#define IDD_ABOUT 7 #define IDD_INFOPANEL 8 #define IDC_TESTVALUE 10 #define IDB_BITMAP1 10 @@ -438,7 +437,6 @@ #define IDC_TITLEFORMAT 1393 #define IDC_THEME 1394 #define IDC_INFOPANEL 1395 -#define IDC_SUPPORT 1396 #define IDC_SHOWAVATAR 1396 #define IDC_NOPOPUPAVAIL 1398 #define IDC_QHTM 1399 @@ -541,7 +539,6 @@ #define IDC_O_TITLEBARFORMAT 1706 #define IDC_O_CNTPRIVATE 1901 #define IDC_PLUS_CHECKTREE 2000 -#define IDC_COPYRIGHT 2002 #define IDC_PLUS_HELP 2004 #define IDC_O_HELP_TITLEFORMAT 2064 #define IDC_OPTIONSTAB 2111 @@ -642,7 +639,6 @@ #define ID_FILE_CLOSEOTHERMSGSESSIONS 40090 #define ID_VIEW_TABSATBOTTOM 40093 #define ID_VIEW_STAYONTOP 40095 -#define ID_HELP 40096 #define ID_OPTIONS_EVENTPOPUPS 40097 #define ID_EVENTPOPUPS_DISABLEALLEVENTPOPUPS 40098 #define ID_OPTIONS_SOUNDS 40101 @@ -736,7 +732,6 @@ #define ID_THISCONTACT_ALWAYSOFF 40213 #define ID_PANELPICMENU_RESETTHEAVATAR 40218 #define ID_EDITOR_PASTEANDSENDIMMEDIATELY 40221 -#define ID_HELP_ABOUTTABSRMM 40223 #define ID_SPLITTERCONTEXT_SAVEGLOBALFORALLSESSIONS 40229 #define ID_SPLITTERCONTEXT_SAVEFORTHISCONTACTONLY 40230 #define ID_SPLITTERCONTEXT_FORGETTHECHANGES 40231 -- cgit v1.2.3