www.pudn.com > vc5ͼÏñ²É¼¯ code.rar > SetSNumBox.cpp


// SetSNumBox.cpp : implementation file 
// 
 
#include "stdafx.h" 
#include "okmfc.h" 
#include "SetSNumBox.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
extern	int iNum; 
 
///////////////////////////////////////////////////////////////////////////// 
// CSetSNumBox dialog 
 
 
CSetSNumBox::CSetSNumBox(CWnd* pParent /*=NULL*/) 
	: CDialog(CSetSNumBox::IDD, pParent) 
{ 
	//{{AFX_DATA_INIT(CSetSNumBox) 
		// NOTE: the ClassWizard will add member initialization here 
	//}}AFX_DATA_INIT 
} 
 
 
void CSetSNumBox::DoDataExchange(CDataExchange* pDX) 
{ 
	CDialog::DoDataExchange(pDX); 
	//{{AFX_DATA_MAP(CSetSNumBox) 
		// NOTE: the ClassWizard will add DDX and DDV calls here 
	//}}AFX_DATA_MAP 
} 
 
 
BEGIN_MESSAGE_MAP(CSetSNumBox, CDialog) 
	//{{AFX_MSG_MAP(CSetSNumBox) 
	//}}AFX_MSG_MAP 
END_MESSAGE_MAP() 
 
///////////////////////////////////////////////////////////////////////////// 
// CSetSNumBox message handlers 
 
BOOL CSetSNumBox::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 CSetSNumBox::OnOK()  
{ 
	// TODO: Add extra validation here 
	 
	iNum=GetDlgItemInt(IDC_NUMIMAGE,NULL,FALSE); 
	CDialog::OnOK(); 
}