www.pudn.com > Videodisplay.rar > YUVdlg.cpp
// YUVdlg.cpp : implementation file
//
#include "stdafx.h"
#include "Video.h"
#include "YUVdlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CYUVdlg dialog
CYUVdlg::CYUVdlg(CWnd* pParent /*=NULL*/)
: CDialog(CYUVdlg::IDD, pParent)
{
pels=352;
lines=288;
//{{AFX_DATA_INIT(CYUVdlg)
m_nFrequency =30;
//}}AFX_DATA_INIT
}
void CYUVdlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CYUVdlg)
DDX_Text(pDX, IDC_FREQUENCY, m_nFrequency);
DDV_MinMaxInt(pDX, m_nFrequency, 1, 100);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CYUVdlg, CDialog)
//{{AFX_MSG_MAP(CYUVdlg)
ON_BN_CLICKED(IDC_ALL_OK, OnAllOk)
ON_BN_CLICKED(IDC_CIF, OnCif)
ON_BN_CLICKED(IDC_QCIF, OnQcif)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CYUVdlg message handlers
void CYUVdlg::OnAllOk()
{
UpdateData(TRUE);
CDialog::OnCancel();
// TODO: Add your control notification handler code here
}
void CYUVdlg::OnCif()
{
pels=352;
lines=288;
// TODO: Add your control notification handler code here
}
void CYUVdlg::OnQcif()
{
pels=176;
lines=144;
// TODO: Add your control notification handler code here
}