00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #pragma once
00023
00024 #include "PPageBase.h"
00025 #include "PlayerListCtrl.h"
00026
00027
00028
00029 class CPPageFormats : public CPPageBase
00030 {
00031 DECLARE_DYNAMIC(CPPageFormats)
00032
00033 private:
00034 CImageList m_onoff;
00035
00036 int GetChecked(int iItem);
00037 void SetChecked(int iItem, int fChecked);
00038
00039 typedef enum {AP_VIDEO=0,AP_MUSIC,AP_AUDIOCD,AP_DVDMOVIE} autoplay_t;
00040 void AddAutoPlayToRegistry(autoplay_t ap, bool fRegister);
00041 bool IsAutoPlayRegistered(autoplay_t ap);
00042
00043 void SetListItemState(int nItem);
00044
00045 public:
00046 CPPageFormats();
00047 virtual ~CPPageFormats();
00048
00049 static bool IsRegistered(CString ext);
00050 static bool RegisterExt(CString ext, bool fRegister);
00051
00052 enum {COL_CATEGORY, COL_ENGINE};
00053 CPlayerListCtrl m_list;
00054 CString m_exts;
00055 CStatic m_autoplay;
00056 CButton m_apvideo;
00057 CButton m_apmusic;
00058 CButton m_apaudiocd;
00059 CButton m_apdvd;
00060 int m_iRtspHandler;
00061 BOOL m_fRtspFileExtFirst;
00062
00063
00064 enum { IDD = IDD_PPAGEFORMATS };
00065
00066 protected:
00067 virtual void DoDataExchange(CDataExchange* pDX);
00068 virtual BOOL OnInitDialog();
00069 virtual BOOL OnApply();
00070
00071 DECLARE_MESSAGE_MAP()
00072
00073 public:
00074 afx_msg void OnNMClickList1(NMHDR* pNMHDR, LRESULT* pResult);
00075 afx_msg void OnLvnItemchangedList1(NMHDR *pNMHDR, LRESULT *pResult);
00076 afx_msg void OnBeginlabeleditList(NMHDR* pNMHDR, LRESULT* pResult);
00077 afx_msg void OnDolabeleditList(NMHDR* pNMHDR, LRESULT* pResult);
00078 afx_msg void OnEndlabeleditList(NMHDR* pNMHDR, LRESULT* pResult);
00079 afx_msg void OnBnClickedButton1();
00080 afx_msg void OnBnClickedButton14();
00081 afx_msg void OnBnClickedButton13();
00082 afx_msg void OnBnClickedButton12();
00083 afx_msg void OnBnClickedButton11();
00084 afx_msg void OnUpdateButtonDefault(CCmdUI* pCmdUI);
00085 afx_msg void OnUpdateButtonSet(CCmdUI* pCmdUI);
00086 };