NowPlayingPlugin: Minor changes.

This commit is contained in:
Birunthan Mohanathas
2011-07-15 15:18:02 +00:00
parent 5e20238120
commit 20e2a53324
5 changed files with 18 additions and 20 deletions

View File

@ -20,6 +20,7 @@
#include "PlayerFoobar.h"
CPlayer* CPlayerFoobar::c_Player = NULL;
extern HINSTANCE g_Instance;
/*
** CPlayerFoobar
@ -70,11 +71,9 @@ CPlayer* CPlayerFoobar::Create()
*/
void CPlayerFoobar::Initialize()
{
HINSTANCE hInstance = GetModuleHandle(NULL);
// Create windows class
WNDCLASS wc = {0};
wc.hInstance = hInstance;
wc.hInstance = g_Instance;
wc.lpfnWndProc = WndProc;
wc.lpszClassName = L"NowPlayingFoobarClass";
RegisterClass(&wc);
@ -89,7 +88,7 @@ void CPlayerFoobar::Initialize()
CW_USEDEFAULT,
NULL,
NULL,
hInstance,
g_Instance,
this);
m_FooWindow = FindWindow(L"foo_rainmeter_class", NULL);
@ -125,7 +124,7 @@ void CPlayerFoobar::Uninitialize()
}
DestroyWindow(m_Window);
UnregisterClass(L"NowPlayingFoobarClass", GetModuleHandle(NULL));
UnregisterClass(L"NowPlayingFoobarClass", g_Instance);
}
/*