00001
00002
00003
00004
00005
00006 #if !defined(AFX_DLGVIDMAN_H__04998526_B001_4CC7_8376_B687D36D0C24__INCLUDED_)
00007 #define AFX_DLGVIDMAN_H__04998526_B001_4CC7_8376_B687D36D0C24__INCLUDED_
00008
00009 #if _MSC_VER > 1000
00010 #pragma once
00011 #endif
00012
00013 #include "resource.h"
00014
00015 class CDlgVidMan : public CDialog
00016 {
00017
00018 public:
00019 BOOL m_bInFVDownloads;
00020 void Convert();
00021 void ApplyLanguage();
00022 void SaveSettings();
00023
00024 void UpdateCommand(UINT nID, BOOL *pbEnabled, BOOL *pbChecked);
00025
00026 void ApplyVolumeSettings();
00027
00028 void Update();
00029 class CDownloads_VideoPreview* m_parent;
00030 CDlgVidMan(CWnd* pParent = NULL);
00031
00032
00033 enum { IDD = IDD_VIDMAN };
00034 CSliderCtrl m_wndVol;
00035
00036
00037
00038 protected:
00039 virtual void DoDataExchange(CDataExchange* pDX);
00040 virtual BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult);
00041
00042
00043 protected:
00044
00045 CFont m_fntBold;
00046
00047 CBrush m_brClrWindow;
00048
00049 void UpdateMuteImage();
00050 BOOL m_bMute;
00051
00052 void UpdateVolumePerc();
00053
00054 void ApplyVolume();
00055 void UpdateEnabled();
00056 CImageList m_imgMute;
00057
00058 CImageList m_imgMan, m_dimgMan;
00059
00060 void CreateBars();
00061 CToolBar m_barMute;
00062 CToolBar m_barMan;
00063
00064
00065 afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
00066 virtual BOOL OnInitDialog();
00067 afx_msg void OnPlay();
00068 afx_msg void OnPause();
00069 afx_msg void OnStop();
00070 afx_msg void OnMute();
00071 afx_msg void OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
00072 afx_msg void OnSize(UINT nType, int cx, int cy);
00073 afx_msg void OnConvert();
00074 afx_msg void OnSwitchAuto();
00075
00076 DECLARE_MESSAGE_MAP()
00077 };
00078
00079
00080
00081 #endif