Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/mpc-hc/PlayerPlaylistBar.h')
-rw-r--r--src/mpc-hc/PlayerPlaylistBar.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/mpc-hc/PlayerPlaylistBar.h b/src/mpc-hc/PlayerPlaylistBar.h
index d113ee563..310ce9f36 100644
--- a/src/mpc-hc/PlayerPlaylistBar.h
+++ b/src/mpc-hc/PlayerPlaylistBar.h
@@ -1,6 +1,6 @@
/*
* (C) 2003-2006 Gabest
- * (C) 2006-2014 see Authors.txt
+ * (C) 2006-2015 see Authors.txt
*
* This file is part of MPC-HC.
*
@@ -25,13 +25,14 @@
#include "PlayerBar.h"
#include "PlayerListCtrl.h"
#include "Playlist.h"
+#include "DropTarget.h"
class OpenMediaData;
class CMainFrame;
-class CPlayerPlaylistBar : public CPlayerBar
+class CPlayerPlaylistBar : public CPlayerBar, public CDropClient
{
DECLARE_DYNAMIC(CPlayerPlaylistBar)
@@ -72,6 +73,10 @@ private:
bool m_bHiddenDueToFullscreen;
+ CDropTarget m_dropTarget;
+ void OnDropFiles(CAtlList<CString>& slFiles, DROPEFFECT) override;
+ DROPEFFECT OnDropAccept(COleDataObject*, DWORD, CPoint) override;
+
public:
CPlayerPlaylistBar(CMainFrame* pMainFrame);
virtual ~CPlayerPlaylistBar();
@@ -102,6 +107,7 @@ public:
void SetLast();
void SetCurValid(bool fValid);
void SetCurTime(REFERENCE_TIME rt);
+ void Randomize();
void Refresh();
bool Empty();
@@ -127,6 +133,7 @@ protected:
DECLARE_MESSAGE_MAP()
public:
+ afx_msg void OnDestroy();
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnLvnKeyDown(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnNMDblclkList(NMHDR* pNMHDR, LRESULT* pResult);
@@ -134,7 +141,6 @@ public:
// afx_msg void OnCustomdrawList(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnDrawItem(int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct);
afx_msg BOOL OnPlayPlay(UINT nID);
- afx_msg void OnDropFiles(HDROP hDropInfo);
afx_msg void OnBeginDrag(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);