From 817fe8d07eb67428f0dd2f587eee002d6319fef8 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Wed, 16 May 2018 14:03:58 +0300 Subject: BasicHistory: cmplugin adaptation --- plugins/BasicHistory/src/Options.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'plugins/BasicHistory/src/Options.cpp') diff --git a/plugins/BasicHistory/src/Options.cpp b/plugins/BasicHistory/src/Options.cpp index ed1902db74..c0d3b16b94 100644 --- a/plugins/BasicHistory/src/Options.cpp +++ b/plugins/BasicHistory/src/Options.cpp @@ -20,12 +20,9 @@ along with this program. If not, see . #include "Options.h" #include "resource.h" -extern HINSTANCE hInst; extern bool g_SmileyAddAvail; extern bool bPopupsEnabled; -#define MODULE "BasicHistory" - Options *Options::instance; struct EventNamesType @@ -122,7 +119,7 @@ int Options::InitOptions(WPARAM wParam, LPARAM) { OPTIONSDIALOGPAGE odp = { 0 }; odp.position = 100000000; - odp.hInstance = hInst; + odp.hInstance = g_plugin.getInst(); odp.flags = ODPF_BOLDGROUPS | ODPF_UNICODE; odp.szTitle.w = LPGENW("History"); @@ -1473,7 +1470,7 @@ INT_PTR CALLBACK Options::DlgProcOptsScheduler(HWND hwndDlg, UINT msg, WPARAM wP DlgTaskOpt top; top.tasks = tasks; top.to = to; - if (DialogBoxParam(hInst, MAKEINTRESOURCE(IDD_DLG_TASK), hwndDlg, DlgProcOptsTask, (LPARAM)&top) == IDOK) { + if (DialogBoxParam(g_plugin.getInst(), MAKEINTRESOURCE(IDD_DLG_TASK), hwndDlg, DlgProcOptsTask, (LPARAM)&top) == IDOK) { if (LOWORD(wParam) == IDC_ADD_TASK) { tasks->push_back(*to); ListBox_AddString(listTasks, to->taskName.c_str()); -- cgit v1.2.3