📄 tianwendlg.h
字号:
// tianwenDlg.h : header file
//
#include <math.h>
#define PI 3.1416
#if !defined(AFX_TIANWENDLG_H__80DAC5C2_993D_47BD_9C2B_DCB37C00F664__INCLUDED_)
#define AFX_TIANWENDLG_H__80DAC5C2_993D_47BD_9C2B_DCB37C00F664__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CTianwenDlg dialog
class CTianwenDlg : public CDialog
{
// Construction
public:
CTianwenDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CTianwenDlg)
enum { IDD = IDD_TIANWEN_DIALOG };
double m_Star_Longitude;
int m_Star_Longitude_Hour;
int m_Star_Longitude_Minute;
float m_Star_Longitude_Second;
double m_Star_Latitude;
int m_Star_Latitude_Degree;
int m_Star_Latitude_Minute;
float m_Star_Latitude_Second;
int m_Time_Year;
int m_Time_Day;
int m_Time_Month;
int m_Time_Hour;
int m_Time_Minute;
float m_Time_Second;
double m_MyLongitude;
int m_MyLongitude_Degree;
int m_MyLongitude_Minute;
float m_MyLongitude_Second;
double m_MyLatitude;
int m_MyLatitude_Degree;
int m_MyLatitude_Minute;
float m_MyLatitude_Second;
double m_Star_Azimuth;
int m_Star_Azimuth_Degree;
int m_Star_Azimuth_minute;
float m_Star_Azimuth_Second;
double m_Star_Height;
int m_Star_Height_Degree;
int m_Star_Height_Minute;
float m_Star_Height_Second;
double m_Longitude;
double m_Latitude;
int fix(double x)
{
if (x>=0) return int(floor(x));
else return int(floor(x-1));
}
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTianwenDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CTianwenDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
virtual void OnOK();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TIANWENDLG_H__80DAC5C2_993D_47BD_9C2B_DCB37C00F664__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -