setbnumbox.cpp

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

CPP
63
字号
// SetBNumBox.cpp : implementation file
//

#include "stdafx.h"
#include "okmfc.h"
#include "SetBNumBox.h"

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

/////////////////////////////////////////////////////////////////////////////
// CSetBNumBox dialog

extern	int		iNum;

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


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


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

/////////////////////////////////////////////////////////////////////////////
// CSetBNumBox message handlers

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

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

⌨️ 快捷键说明

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