seqnum.cpp

来自「OK视频采集卡VC源代码」· C++ 代码 · 共 71 行

CPP
71
字号
// SeqNum.cpp : implementation file
//

#include "stdafx.h"
#include "OkMfc.h"
#include "SeqNum.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

extern	short		iNumImage;

/////////////////////////////////////////////////////////////////////////////
// CSeqNum dialog


CSeqNum::CSeqNum(CWnd* pParent /*=NULL*/)
	: CDialog(CSeqNum::IDD, pParent)
{
	//{{AFX_DATA_INIT(CSeqNum)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}


void CSeqNum::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CSeqNum)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CSeqNum, CDialog)
	//{{AFX_MSG_MAP(CSeqNum)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CSeqNum message handlers

BOOL CSeqNum::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	SetDlgItemInt(IDC_NUMIMAGE, iNumImage, FALSE);
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

void CSeqNum::OnOK() 
{
	// TODO: Add extra validation here
	iNumImage = GetDlgItemInt(IDC_NUMIMAGE, NULL, FALSE);
	
	CDialog::OnOK();
}

BOOL CSeqNum::Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext) 
{
	// TODO: Add your specialized code here and/or call the base class
	
	return CDialog::Create(IDD, pParentWnd);
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?