📄 userql.cpp
字号:
// UserQL.cpp : implementation file
//
#include "stdafx.h"
#include "mc3000.h"
#include "UserQL.h"
#include "DataShowDlg.h"
#include "TimeMsgDlg.h"
// CUserQL dialog
IMPLEMENT_DYNAMIC(CUserQL, CDialog)
CUserQL::CUserQL(CWnd* pParent /*=NULL*/)
: CDialog(CUserQL::IDD, pParent)
{
}
CUserQL::~CUserQL()
{
}
void CUserQL::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
}
BEGIN_MESSAGE_MAP(CUserQL, CDialog)
ON_BN_CLICKED(IDOK, &CUserQL::OnBnClickedOk)
ON_BN_CLICKED(IDCANCEL, &CUserQL::OnBnClickedCancel)
END_MESSAGE_MAP()
// CUserQL message handlers
void CUserQL::OnBnClickedOk()
{
// TODO: Add your control notification handler code here
CString sTemp1,sTemp2,sTemp3,sTemp4,sLocation;
GetDlgItemText(IDC_EDIT_QU,sTemp1);
GetDlgItemText(IDC_EDIT_LIE,sTemp2);
GetDlgItemText(IDC_EDIT_JIE,sTemp3);
GetDlgItemText(IDC_EDIT_CENG,sTemp4);
sLocation = sTemp1 + sTemp2 + sTemp3 + sTemp4;
// DataSet * pData;
// pData = theApp.m_reader.FindDataSetByLoacation(sLocation);
m_sKey = sLocation;
/* if (pData != NULL)
{
CTimeMsgDlg dlg2(_T("查询成功,正在初始化数据...!"),this);
dlg2.DoModal();
CDataShowDlg dlg(pData,this);
dlg.DoModal();
}
else
{
AfxMessageBox(_T("查询失败!"));
}
*/
OnOK();
}
void CUserQL::OnBnClickedCancel()
{
// TODO: Add your control notification handler code here
OnCancel();
}
BOOL CUserQL::OnInitDialog()
{
CDialog::OnInitDialog();
return TRUE;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -