summaryrefslogtreecommitdiff
path: root/plugins/BasicHistory/src/Options.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <Mataes2007@gmail.com>2018-05-16 14:03:58 +0300
committerKirill Volinsky <Mataes2007@gmail.com>2018-05-16 14:04:33 +0300
commit817fe8d07eb67428f0dd2f587eee002d6319fef8 (patch)
treeb8b0534d858d9a5d078923a5d136f2c341d080e1 /plugins/BasicHistory/src/Options.cpp
parent748efe9bb088ba5226f28e357725b006d280b00f (diff)
BasicHistory: cmplugin adaptation
Diffstat (limited to 'plugins/BasicHistory/src/Options.cpp')
-rw-r--r--plugins/BasicHistory/src/Options.cpp7
1 files changed, 2 insertions, 5 deletions
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 <http://www.gnu.org/licenses/>.
#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());