- Main Page
- Namespaces
- Classes
- Files
- Directories

- File List
- File Members

# PlayerCaptureBar.cpp

    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 // PlayerCaptureBar.cpp : implementation file
    00023 //
    00024
    00025 #include "stdafx.h"
    00026 #include "mplayerc.h"
    00027 #include "mainfrm.h"
    00028 #include "PlayerCaptureBar.h"
    00029
    00030
    00031 // CPlayerCaptureBar
    00032
    00033 IMPLEMENT_DYNAMIC(CPlayerCaptureBar, baseCPlayerCaptureBar)
    00034 CPlayerCaptureBar::CPlayerCaptureBar()
    00035 {
    00036 }
    00037
    00038 CPlayerCaptureBar::~CPlayerCaptureBar()
    00039 {
    00040 }
    00041
    00042 BOOL CPlayerCaptureBar::Create(CWnd* pParentWnd)
    00043 {
    00044         if(!baseCPlayerCaptureBar::Create(_T("Capture Settings"), pParentWnd, 50))
    00045                 return FALSE;
    00046
    00047         m_capdlg.Create(this);
    00048         m_capdlg.ShowWindow(SW_SHOWNORMAL);
    00049
    00050         CRect r;
    00051         m_capdlg.GetWindowRect(r);
    00052         m_szMinVert = m_szVert = r.Size();
    00053         m_szMinHorz = m_szHorz = r.Size();
    00054         m_szMinFloat = m_szFloat = r.Size();
    00055         m_bFixedFloat = true;
    00056         m_szFixedFloat = r.Size();
    00057
    00058         return TRUE;
    00059 }
    00060
    00061 BOOL CPlayerCaptureBar::PreTranslateMessage(MSG* pMsg)
    00062 {
    00063         if(IsWindow(pMsg->hwnd) && IsVisible() && pMsg->message >= WM_KEYFIRST && pMsg->message <= WM_KEYLAST)
    00064         {
    00065                 if(IsDialogMessage(pMsg))
    00066                         return TRUE;
    00067         }
    00068
    00069         return baseCPlayerCaptureBar::PreTranslateMessage(pMsg);
    00070 }
    00071
    00072 BEGIN_MESSAGE_MAP(CPlayerCaptureBar, baseCPlayerCaptureBar)
    00073 END_MESSAGE_MAP()
    00074
    00075 // CPlayerCaptureBar message handlers