📄 timedialog.cpp
字号:
// TimeDialog.cpp : implementation file
//
#include "stdafx.h"
#include "Modem3.h"
#include "TimeDialog.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CTimeDialog dialog
CTimeDialog::CTimeDialog(CWnd* pParent /*=NULL*/)
: CDialog(CTimeDialog::IDD, pParent)
{
//{{AFX_DATA_INIT(CTimeDialog)
m_psjgk = 0.0f;
m_lrfk = 0.0f;
m_ljfk = 0.0f;
m_zlxs = 0.0f;
m_zrxs = 0.0f;
m_lpsjg = 0.0f;
m_lpssj = 0.0f;
m_lqdh = 0.0f;
m_thqys = 0.0f;
m_bwys = 0.0f;
m_byys = 0.0f;
m_cyys = 0.0f;
m_dwys = 0.0f;
m_dycys = 0.0f;
m_dyys = 0.0f;
//}}AFX_DATA_INIT
CWnd *ppWnd=CWnd::FindWindow(NULL,"modem3");
pWnd=((CModem3Dlg *)ppWnd);
}
void CTimeDialog::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CTimeDialog)
DDX_Text(pDX, IDC_PSJGK, m_psjgk);
DDX_Text(pDX, IDC_LRFK, m_lrfk);
DDX_Text(pDX, IDC_LJFK, m_ljfk);
DDX_Text(pDX, IDC_ZLXS, m_zlxs);
DDX_Text(pDX, IDC_ZRXS, m_zrxs);
DDX_Text(pDX, IDC_LPSJG, m_lpsjg);
DDX_Text(pDX, IDC_LPSSJ, m_lpssj);
DDX_Text(pDX, IDC_LQDH, m_lqdh);
DDX_Text(pDX, IDC_THQYS, m_thqys);
DDX_Text(pDX, IDC_BWYS, m_bwys);
DDX_Text(pDX, IDC_BYYS, m_byys);
DDX_Text(pDX, IDC_CYYS, m_cyys);
DDX_Text(pDX, IDC_DWYS, m_dwys);
DDX_Text(pDX, IDC_DYCYS, m_dycys);
DDX_Text(pDX, IDC_DYYS, m_dyys);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CTimeDialog, CDialog)
//{{AFX_MSG_MAP(CTimeDialog)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CTimeDialog message handlers
BOOL CTimeDialog::OnInitDialog()
{
CDialog::OnInitDialog();
int i;
// TODO: Add extra initialization here
for(i=0;i<31;i++)
yd[i]=pWnd->immediate_data[i];
m_zlxs=float(yd[8]*256+yd[7]);
m_zrxs=float(yd[10]*256+yd[9]);
m_lrfk=float(yd[13]*256+yd[12]);
m_ljfk=float(yd[24]);
m_psjgk=float(yd[14]);
m_lpssj=float(yd[16]*256+yd[15]);
m_lpsjg=float(yd[18]*256+yd[17]);
m_lqdh=float(yd[19]);
m_thqys=float(yd[21]);
m_cyys=float(yd[22]);
m_byys=float(yd[11]);
m_bwys=float(yd[23]);
m_dycys=float(yd[27]);
m_dyys=float(yd[25]);
m_dwys=float(yd[28]);
this->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 + -