summaryrefslogtreecommitdiff
path: root/plugins/MenuItemEx/src/options.cpp
diff options
context:
space:
mode:
authorMataes <mataes2007@gmail.com>2018-05-17 20:57:34 +0300
committerMataes <mataes2007@gmail.com>2018-05-17 20:59:22 +0300
commit754665d1ae053678088144bb833bda76a0d95794 (patch)
tree221e443038e147a7e2af98ea16163265fb9811eb /plugins/MenuItemEx/src/options.cpp
parent067a48827e8bae1bc595f3268e18996314843396 (diff)
KeyboardNotify, ListeningTO, MagneticWindows, MenuItemEx: cmplugin adaptation
Diffstat (limited to 'plugins/MenuItemEx/src/options.cpp')
-rw-r--r--plugins/MenuItemEx/src/options.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/MenuItemEx/src/options.cpp b/plugins/MenuItemEx/src/options.cpp
index 853fdb40d8..f9505d84dc 100644
--- a/plugins/MenuItemEx/src/options.cpp
+++ b/plugins/MenuItemEx/src/options.cpp
@@ -1,6 +1,5 @@
#include "stdafx.h"
-extern HINSTANCE hinstance;
extern BOOL bPopupService;
struct {
@@ -62,7 +61,7 @@ INT_PTR CALLBACK OptionsProc(HWND hdlg, UINT msg, WPARAM wparam, LPARAM lparam)
return 1;
case WM_NOTIFY:
- switch (((LPNMHDR)lparam)->code){
+ switch (((LPNMHDR)lparam)->code) {
case PSN_APPLY:
DWORD mod_flags = 0;
@@ -99,7 +98,7 @@ int OptionsInit(WPARAM wparam, LPARAM)
{
OPTIONSDIALOGPAGE odp = { 0 };
odp.position = 955000000;
- odp.hInstance = hinstance;
+ odp.hInstance = g_plugin.getInst();
odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPTIONS);
odp.szTitle.a = MODULENAME;
odp.pfnDlgProc = OptionsProc;