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 <atlimage.h>
00025
00026 class CChildView : public CWnd
00027 {
00028 CRect m_vrect;
00029
00030 DWORD m_lastlmdowntime;
00031 CPoint m_lastlmdownpoint;
00032
00033 CCritSec m_csLogo;
00034 CImage m_logo;
00035
00036 public:
00037 CChildView();
00038 virtual ~CChildView();
00039
00040 DECLARE_DYNAMIC(CChildView)
00041
00042 public:
00043 void SetVideoRect(CRect r = CRect(0,0,0,0));
00044 CRect GetVideoRect() {return(m_vrect);}
00045
00046 void LoadLogo();
00047 CSize GetLogoSize();
00048
00049 protected:
00050 virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
00051 virtual BOOL PreTranslateMessage(MSG* pMsg);
00052
00053 afx_msg void OnPaint();
00054 afx_msg BOOL OnEraseBkgnd(CDC* pDC);
00055 afx_msg void OnSize(UINT nType, int cx, int cy);
00056 afx_msg void OnWindowPosChanged(WINDOWPOS* lpwndpos);
00057 afx_msg BOOL OnPlayPlayPauseStop(UINT nID);
00058 afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
00059 afx_msg void OnNcCalcSize(BOOL bCalcValidRects, NCCALCSIZE_PARAMS* lpncsp);
00060 afx_msg void OnNcPaint();
00061
00062 DECLARE_MESSAGE_MAP()
00063 public:
00064 afx_msg void OnSetFocus(CWnd* pOldWnd);
00065 };