From a76776079b6d15e92dffd0c5c0016389092b1c8b Mon Sep 17 00:00:00 2001 From: aunsane Date: Sun, 25 Feb 2018 14:45:28 +0300 Subject: Fixes related with 7fc01c9 --- plugins/MirLua/src/mlua_options.cpp | 18 ------------------ plugins/MirLua/src/mlua_options.h | 16 +--------------- 2 files changed, 1 insertion(+), 33 deletions(-) (limited to 'plugins/MirLua/src') diff --git a/plugins/MirLua/src/mlua_options.cpp b/plugins/MirLua/src/mlua_options.cpp index 9a4438d408..2a7d141e41 100644 --- a/plugins/MirLua/src/mlua_options.cpp +++ b/plugins/MirLua/src/mlua_options.cpp @@ -1,23 +1,5 @@ #include "stdafx.h" -CCtrlScriptList::CCtrlScriptList(CDlgBase* dlg, int ctrlId) - : CCtrlListView(dlg, ctrlId) -{ -} - -BOOL CCtrlScriptList::OnNotify(int idCtrl, NMHDR *pnmh) -{ - if (pnmh->code == NM_CLICK) - { - TEventInfo evt = { this, pnmh }; - OnClick(&evt); - return TRUE; - } - return CCtrlListView::OnNotify(idCtrl, pnmh); -} - -/****************************************/ - CMLuaOptions::CMLuaOptions(int idDialog) : CPluginDlgBase(g_hInstance, idDialog, MODULE), m_popupOnError(this, IDC_POPUPONERROR), diff --git a/plugins/MirLua/src/mlua_options.h b/plugins/MirLua/src/mlua_options.h index 5d36188604..a8168d70da 100644 --- a/plugins/MirLua/src/mlua_options.h +++ b/plugins/MirLua/src/mlua_options.h @@ -3,20 +3,6 @@ #include -class CCtrlScriptList : public CCtrlListView -{ -private: - typedef CCtrlListView CSuper; - -protected: - BOOL OnNotify(int idCtrl, NMHDR *pnmh); - -public: - CCtrlScriptList(CDlgBase* dlg, int ctrlId); - - CCallback OnClick; -}; - class CMLuaOptions : public CPluginDlgBase { private: @@ -24,7 +10,7 @@ private: CCtrlCheck m_popupOnObsolete; bool isScriptListInit; - CCtrlScriptList m_scripts; + CCtrlListView m_scripts; CCtrlButton m_reload; void LoadScripts(); -- cgit v1.2.3