- Main Page
- Namespaces
- Classes
- Files
- Directories

- File List
- File Members

# ChildView.h

    00001 /*
    00002  *      Copyright (C) 2003-2005 Gabest
    00003  *      http://www.gabest.org
    00004  *
    00005  *  This Program is free software; you can redistribute it and/or modify
    00006  *  it under the terms of the GNU General Public License as published by
    00007  *  the Free Software Foundation; either version 2, or (at your option)
    00008  *  any later version.
    00009  *
    00010  *  This Program is distributed in the hope that it will be useful,
    00011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
    00012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    00013  *  GNU General Public License for more details.
    00014  *
    00015  *  You should have received a copy of the GNU General Public License
    00016  *  along with GNU Make; see the file COPYING.  If not, write to
    00017  *  the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
    00018  *  http://www.gnu.org/copyleft/gpl.html
    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 };