www.pudn.com > Videodisplay.rar > WTDlg.cpp
// WTDlg.cpp : implementation file
//
#include "stdafx.h"
#include "Video.h"
#include "WTDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CWTDlg dialog
CWTDlg::CWTDlg(CWnd* pParent /*=NULL*/)
: CDialog(CWTDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CWTDlg)
m_nFrame = 16;
m_nSpaceLevel =3;
m_nTimeLevel = 3;
m_nStepY = 2;
m_nStepU = 2;
m_nStepV = 2;
pels=352;
lines=288;
//}}AFX_DATA_INIT
}
void CWTDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CWTDlg)
DDX_Text(pDX, IDC_FRAME, m_nFrame);
DDV_MinMaxInt(pDX, m_nFrame, 1, 299);
DDX_Text(pDX, IDC_SPACE_LEVEL, m_nSpaceLevel);
DDV_MinMaxInt(pDX, m_nSpaceLevel, 0, 8);
DDX_Text(pDX, IDC_TIME_LEVEL, m_nTimeLevel);
DDV_MinMaxInt(pDX, m_nTimeLevel, 0, 10);
DDX_Text(pDX, IDC_STEP_Y, m_nStepY);
DDV_MinMaxInt(pDX, m_nStepY, 1, 500);
DDX_Text(pDX, IDC_STEP_U, m_nStepU);
DDV_MinMaxInt(pDX, m_nStepU, 1, 500);
DDX_Text(pDX, IDC_STEP_V, m_nStepV);
DDV_MinMaxInt(pDX, m_nStepV, 1, 500);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CWTDlg, CDialog)
//{{AFX_MSG_MAP(CWTDlg)
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()
/////////////////////////////////////////////////////////////////////////////
// CWTDlg message handlers
void CWTDlg::OnAllOk() //ÊäÈëÊý¾Ý
{
UpdateData(TRUE);
CDialog::OnCancel();
}
void CWTDlg::OnCif()
{
pels=352;
lines=288;
// TODO: Add your control notification handler code here
}
void CWTDlg::OnQcif()
{
pels=176;
lines=144;
// TODO: Add your control notification handler code here
}