diff options
author | Kirill Volinsky <Mataes2007@gmail.com> | 2018-05-16 13:28:43 +0300 |
---|---|---|
committer | Kirill Volinsky <Mataes2007@gmail.com> | 2018-05-16 13:28:43 +0300 |
commit | 2e8582832fe56c89bb422b82e884ddaf67a8dbb3 (patch) | |
tree | 632f1d87304b349d0a6357f1606ed01c8ddae37a /plugins/AutoShutdown/src/frame.cpp | |
parent | 6118d2cff50492b4edc6d7b478c2fd2dc7fdbd7b (diff) |
AutoShutdown: cmplugin adaptation
Diffstat (limited to 'plugins/AutoShutdown/src/frame.cpp')
-rw-r--r-- | plugins/AutoShutdown/src/frame.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/AutoShutdown/src/frame.cpp b/plugins/AutoShutdown/src/frame.cpp index 89b010b0b7..c8a279189b 100644 --- a/plugins/AutoShutdown/src/frame.cpp +++ b/plugins/AutoShutdown/src/frame.cpp @@ -22,7 +22,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "stdafx.h"
/* Show Frame */
-extern HINSTANCE hInst;
static HWND hwndCountdownFrame;
static WORD hFrame;
/* Misc */
@@ -490,7 +489,7 @@ void ShowCountdownFrame(WORD fTimeFlags) GetSystemMetrics(SM_CYICON) + 2,
pcli->hwndContactList,
nullptr,
- hInst,
+ g_plugin.getInst(),
&fTimeFlags);
if (hwndCountdownFrame == nullptr) return;
@@ -572,7 +571,7 @@ int InitFrame(void) wcx.cbSize = sizeof(wcx);
wcx.style = CS_DBLCLKS | CS_PARENTDC;
wcx.lpfnWndProc = FrameWndProc;
- wcx.hInstance = hInst;
+ wcx.hInstance = g_plugin.getInst();
wcx.hCursor = (HCURSOR)LoadImage(nullptr, IDC_ARROW, IMAGE_CURSOR, 0, 0, LR_SHARED);
wcx.lpszClassName = COUNTDOWNFRAME_CLASS;
if (!RegisterClassEx(&wcx))
@@ -586,6 +585,6 @@ int InitFrame(void) void UninitFrame(void)
{
/* frame closed by UninitWatcher() */
- UnregisterClass(COUNTDOWNFRAME_CLASS, hInst); /* fails if window still exists */
+ UnregisterClass(COUNTDOWNFRAME_CLASS, g_plugin.getInst()); /* fails if window still exists */
UnhookEvent(hHookModulesLoaded);
}
|