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

📄 gearsel.cpp

📁 齿轮检测软件
💻 CPP
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -