📄 dlgsksinfo.h
字号:
#if !defined(AFX_DLGSKSINFO_H__A2643D83_3467_493D_9597_74D18F318044__INCLUDED_)
#define AFX_DLGSKSINFO_H__A2643D83_3467_493D_9597_74D18F318044__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgSKSinfo.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CDlgSKSinfo dialog
class CDlgSKSinfo : public CDialog
{
// Construction
public:
CDlgSKSinfo(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CDlgSKSinfo)
enum { IDD = IDD_DIALOG_SKSINFO };
CString m_Delay;
CString m_Direction;
//}}AFX_DATA
void SetDelay(double delay) {
char cc[256];
memset(cc,0,256);
sprintf(cc, "%f",delay);
SetDlgItemText( IDC_STATICdelay, cc );
}
void SetDelay_err(double delay_err) {
char cc[256];
memset(cc,0,256);
sprintf(cc, "%f",delay_err);
SetDlgItemText( IDC_STATICdelay_err, cc );
}
void SetDirection( double direction ) {
char cc[256];
memset(cc,0,256);
sprintf(cc, "%f",direction);
SetDlgItemText( IDC_STATICdirection, cc );
}
void SetDir_err( double dir_err ) {
char cc[256];
memset(cc,0,256);
sprintf(cc, "%f",dir_err);
SetDlgItemText( IDC_STATICdir_err, cc );
}
void SetCorrelation( double correlation ) {
char cc[256];
memset(cc,0,256);
sprintf(cc, "%f",correlation);
SetDlgItemText( IDC_STATICcorrelation, cc );
}
void SetAzimuth( double azimuth ) {
char cc[256];
memset(cc,0,256);
sprintf(cc, "%f",azimuth);
SetDlgItemText( IDC_STATICazimuth, cc );
}
void SetStationLoc( double lat, double lon ) {
char cc[256];
memset(cc,0,256);
sprintf(cc, "%5.2f,%6.2f", lat, lon);
SetDlgItemText( IDC_STATICstationcoor, cc );
}
void SetEventLoc( double lat, double lon ) {
char cc[256];
memset(cc,0,256);
sprintf(cc, "%5.2f,%6.2f", lat, lon);
SetDlgItemText( IDC_STATICeventcoor, cc );
}
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDlgSKSinfo)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CDlgSKSinfo)
// NOTE: the ClassWizard will add member functions here
afx_msg void OnDestroy();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DLGSKSINFO_H__A2643D83_3467_493D_9597_74D18F318044__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -