📄 dialoghtharg.cpp
字号:
// Dialoghtharg.cpp : implementation file
//
#include "stdafx.h"
#include "hfcj001.h"
#include "Dialoghtharg.h"
#include <srllib.h>
#include <dxxxlib.h>
#include <dtilib.h>
#include "hdefine.h"
#include "htypedef.h"
#include "afxmt.h"
#include "Mydatabase.h"
#include "Myrecordset.h"
#include "zdcjall.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CDialoghtharg dialog
CDialoghtharg::CDialoghtharg(CWnd* pParent /*=NULL*/)
: CDialog(CDialoghtharg::IDD, pParent)
{
//{{AFX_DATA_INIT(CDialoghtharg)
m_htharg = _T("");
m_fjhth = _T("");
//}}AFX_DATA_INIT
}
void CDialoghtharg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CDialoghtharg)
DDX_Text(pDX, IDC_EDITHTHARG, m_htharg);
DDV_MaxChars(pDX, m_htharg, 200);
DDX_Text(pDX, IDC_EDITFJHTH, m_fjhth);
DDV_MaxChars(pDX, m_fjhth, 500);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CDialoghtharg, CDialog)
//{{AFX_MSG_MAP(CDialoghtharg)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CDialoghtharg message handlers
void CDialoghtharg::OnOK()
{
// TODO: Add extra validation here
int i;
char hthargtmp[200];
if(UpdateData(TRUE)==FALSE){
return;
}
sprintf(hthargtmp,m_htharg);
if(Handlehtharg(hthargtmp,gs_htharg[0])==FALSE){
MessageBox("参数错误","错误");
return;
}
//参数正确,赋值
sprintf(ls_htharg,hthargtmp);
sprintf(ls_fjhth,"");
for(i=0;i<hthcounts;i++){
strcat(ls_fjhth,gs_htharg[i]);
strcat(ls_fjhth," ");
}
//m_fjhth=ls_fjhth;
//UpdateData(FALSE);
CDialog::OnOK();
}
BOOL CDialoghtharg::OnInitDialog()
{
CDialog::OnInitDialog();
// TODO: Add extra initialization here
m_htharg=ls_htharg;
m_fjhth=ls_fjhth;
UpdateData(FALSE);
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 + -