NowPlayingPlugin: iTunes quits are handled a little more gracefully now (i.e. iTunes should now quit immediately without lag)

This commit is contained in:
Birunthan Mohanathas
2011-07-17 10:36:04 +00:00
parent 8515877c48
commit a639eb7cc1
4 changed files with 89 additions and 28 deletions

View File

@ -33,6 +33,8 @@
#include <atlhost.h>
#include <atlctl.h>
const int TIMER_CHECKACTIVE = 1;
class CPlayerITunes : public CPlayer
{
public:
@ -88,9 +90,12 @@ private:
void OnVolumeChange(int volume);
bool CheckWindow();
static CPlayer* c_Player;
static LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
bool m_UserQuitPrompt;
static CPlayer* c_Player;
HWND m_CallbackWindow;
bool m_iTunesActive;
IiTunes* m_iTunes;
CEventHandler* m_iTunesEvent;
};