⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 destroylosetypeselect.cpp

📁 码头手持机项目,用于统计集装箱,轮船的情况,手持机采用S3C2440处理器,数据传输采用2.4G无线,上位机用VC编写
💻 CPP
字号:
// DestroyLoseTypeSelect.cpp : implementation file
//

#include "stdafx.h"
#include "CTSClient.h"
#include "DestroyLoseTypeSelect.h"

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

/////////////////////////////////////////////////////////////////////////////
// DestroyLoseTypeSelect dialog


DestroyLoseTypeSelect::DestroyLoseTypeSelect(CWnd* pParent /*=NULL*/)
	: CDialog(DestroyLoseTypeSelect::IDD, pParent)
{
	//{{AFX_DATA_INIT(DestroyLoseTypeSelect)
		// NOTE: the ClassWizard will add member initialization here
    modify = false; 
	destroyLoseTypeString = _T("");
	//}}AFX_DATA_INIT
}


void DestroyLoseTypeSelect::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(DestroyLoseTypeSelect)
	DDX_Control(pDX, IDC_COMBO1, m_destroyloseType);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(DestroyLoseTypeSelect, CDialog)
	//{{AFX_MSG_MAP(DestroyLoseTypeSelect)
	ON_BN_CLICKED(IDC_BUTTON4, OnButton4)
	ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// DestroyLoseTypeSelect message handlers

void DestroyLoseTypeSelect::OnButton4() 
{
	// TODO: Add your control notification handler code here
	modify = false;
	CDialog::OnCancel();
}

void DestroyLoseTypeSelect::OnButton1() 
{
	// TODO: Add your control notification handler code here
	modify = true;
    UpdateData(true);
	int selectIndex = 0;
	CString selectText = _T("");	
	selectIndex = m_destroyloseType.GetCurSel();
	m_destroyloseType.GetLBText(selectIndex,selectText);
	destroyLoseTypeString = selectText;
	UpdateData(false);
	CDialog::OnOK();
}

BOOL DestroyLoseTypeSelect::OnInitDialog() 
{
	CDialog::OnInitDialog();
    
	modify = false;
	UpdateData(true);
	m_destroyloseType.SetCurSel(0);	
	UpdateData(false);
	
	// TODO: Add extra initialization here
	
	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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -