gearsel.cpp

来自「齿轮检测软件」· C++ 代码 · 共 66 行

CPP
66
字号
// gearsel.cpp : implementation file
//

#include "stdafx.h"
#include "dlq.h"
#include "gearsel.h"

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

/////////////////////////////////////////////////////////////////////////////
// Cgearsel dialog


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


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


BEGIN_MESSAGE_MAP(Cgearsel, CDialog)
	//{{AFX_MSG_MAP(Cgearsel)
	ON_CBN_DROPDOWN(IDC_COMBO1, OnDropdownCombo1)
	ON_CBN_CLOSEUP(IDC_COMBO1, OnCloseupCombo1)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// Cgearsel message handlers



void Cgearsel::OnDropdownCombo1() 
{
	for(int i=0;i<count;i++)
	m_combo.AddString(ch[i]);
m_combo.SelectString(-1,ch[0]);
	// TODO: Add your control notification handler code here
	
}

void Cgearsel::OnCloseupCombo1() 
{
	
	if((cul=m_combo.GetCurSel())!=CB_ERR)
			m_combo.GetLBText(cul,m_select);
	
	// TODO: Add your control notification handler code here
	
}

⌨️ 快捷键说明

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