📄 dataask.cpp
字号:
// DataAsk.cpp : implementation file
//
#include "stdafx.h"
#include "gear.h"
#include "DataAsk.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CDataAsk dialog
CDataAsk::CDataAsk(CWnd* pParent /*=NULL*/)
: CDialog(CDataAsk::IDD, pParent)
{
//{{AFX_DATA_INIT(CDataAsk)
m_edit_value = _T("");
//}}AFX_DATA_INIT
}
void CDataAsk::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CDataAsk)
DDX_Control(pDX, IDC_COMBO_rela, m_combo_rela);
DDX_Control(pDX, IDC_COMBO_attri, m_combo_attri);
DDX_Text(pDX, IDC_EDIT_value, m_edit_value);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CDataAsk, CDialog)
//{{AFX_MSG_MAP(CDataAsk)
ON_BN_CLICKED(IDC_BTN_all, OnBTNall)
ON_BN_CLICKED(IDC_BUTTON_ask, OnBUTTONask)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CDataAsk message handlers
void CDataAsk::OnBTNall()
{
// TODO: Add your control notification handler code here
CDialog::EndDialog(1);
}
void CDataAsk::OnBUTTONask()
{
// TODO: Add your control notification handler code here
m_combo_attri.GetWindowText(attri);
m_combo_rela.GetWindowText(rela);
this->UpdateData();
sV=m_edit_value;
CDialog::EndDialog(0);
}
BOOL CDataAsk::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
m_combo_attri.ResetContent();
for(int n=0;n<nF;n++){
m_combo_attri.AddString(sF[n]);
}
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 + -