chbmxg.cpp

来自「面向软件工程的Visual C++网络程序开发」· C++ 代码 · 共 61 行

CPP
61
字号
// Chbmxg.cpp : implementation file
//

#include "stdafx.h"
#include "falcon_jxc.h"
#include "Chbmxg.h"

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

/////////////////////////////////////////////////////////////////////////////
// CChbmxg dialog


CChbmxg::CChbmxg(CWnd* pParent /*=NULL*/)
	: CDialog(CChbmxg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CChbmxg)
	m_nXuhao = 0;
	m_strChuhuobumen = _T("");
	//}}AFX_DATA_INIT
}


void CChbmxg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CChbmxg)
	DDX_Control(pDX, IDC_COMBO_CHUHUODIAN, m_ctrChuhuobumen);
	DDX_Text(pDX, IDC_XUHAO, m_nXuhao);
	DDX_CBString(pDX, IDC_COMBO_CHUHUODIAN, m_strChuhuobumen);
	//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
// CChbmxg message handlers

BOOL CChbmxg::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	m_ctrChuhuobumen.AddString("展场");
	m_ctrChuhuobumen.AddString("库房");
	m_ctrChuhuobumen.AddString("圣地亚");
	m_ctrChuhuobumen.AddString("欧典");
	m_ctrChuhuobumen.AddString("南洋");
	m_ctrChuhuobumen.SetCurSel(0);
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}

⌨️ 快捷键说明

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