www.pudn.com > MCIWnd_MediaPlayer.rar > MediaPlayerDlg.h


// MediaPlayerDlg.h : 头文件 
// 
 
#pragma once 
#include "staticex.h" 
#include "myplayer.h" 
#include "afxcmn.h" 
#include "afxwin.h" 
#include "playlist.h" 
//#include "ButtonEx.h" 
#include "TransParentButton.h" 
#include "MySliderControl.h" 
#include "TransparentListBox.h" 
 
#define RightMarg 400 
#define BottomMarg 60 
#define ListWidth 100 
#define ButtonLeft 10 
#define ButtonWidth 44 
#define ButtonHeight 25 
#define ButtonBetween 15 
 
#define NAMEBUF 2048 
// CMediaPlayerDlg 对话框 
class CMediaPlayerDlg : public CDialog 
{ 
// 构造 
public: 
	CMediaPlayerDlg(CWnd* pParent = NULL);	// 标准构造函数 
 
// 对话框数据 
	enum { IDD = IDD_MEDIAPLAYER_DIALOG }; 
 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV 支持 
 
 
// 实现 
protected: 
	HICON m_hIcon; 
 
	// 生成的消息映射函数 
	virtual BOOL OnInitDialog(); 
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam); 
	afx_msg void OnPaint(); 
	afx_msg HCURSOR OnQueryDragIcon(); 
	DECLARE_MESSAGE_MAP() 
public: 
	//CPlayer player; 
	LRESULT OnMyMessage(WPARAM lParam,LPARAM  wParam); 
	afx_msg void OnTimer(UINT nIDEvent); 
	CMyPlayer m_player; 
	CTransparentListBox fileList; 
	afx_msg void OnSize(UINT nType, int cx, int cy); 
	afx_msg void OnSizing(UINT fwSide, LPRECT pRect); 
	int menuHeight; 
	int borderWidth; 
	void LayOut(void); 
	CMySliderControl m_state; 
	CMySliderControl m_vol; 
	CTransParentButton m_play; 
	CTransParentButton m_stop; 
	CTransParentButton m_form; 
	CTransParentButton m_next; 
	afx_msg void OnBnClickedPlay(); 
	afx_msg void OnNMReleasedcaptureState(NMHDR *pNMHDR, LRESULT *pResult); 
	LRESULT ShowPos(WPARAM wParam, LPARAM lParam); 
	LRESULT Finish(WPARAM wParam, LPARAM lParam); 
	LRESULT Next(WPARAM wParam, LPARAM lParam); 
	afx_msg void OnBnClickedStop(); 
	void SetButtonState(void); 
	afx_msg void OnContextMenu(CWnd* /*pWnd*/, CPoint /*point*/); 
	afx_msg void OnNMReleasedcaptureVol(NMHDR *pNMHDR, LRESULT *pResult); 
	afx_msg void OnRate(); 
	afx_msg void OnOpen(); 
	afx_msg void OnExit(); 
	CPlayList m_playList; 
	afx_msg void OnLbnDblclkList2(); 
	CStatic m_picture; 
	afx_msg void OnBnClickedNext(); 
	afx_msg void OnBnClickedForm(); 
	afx_msg void OnStnClickedPciture1(); 
	CBitmap static_bmp; 
	//background 
	CString skin; 
	CDC     memDC; 
	CBitmap	bitmap; 
	BITMAP  bmp; 
	afx_msg BOOL OnEraseBkgnd(CDC* pDC); 
	afx_msg void OnMouseMove(UINT nFlags, CPoint point); 
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor); 
	afx_msg void OnSkin(); 
	afx_msg void OnDel(); 
	afx_msg void OnAdd(); 
};