📄 学分绩点计算dlg.h
字号:
// 学分绩点计算Dlg.h : header file
//
#if !defined(AFX_DLG_H__D972F477_7D67_4B42_AEA5_47416F8A66FF__INCLUDED_)
#define AFX_DLG_H__D972F477_7D67_4B42_AEA5_47416F8A66FF__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "xpbutton.h"
/////////////////////////////////////////////////////////////////////////////
// CMyDlg dialog
class CMyDlg : public CDialog
{
// Construction
public:
CMyDlg(CWnd* pParent = NULL); // standard constructor
int num;
double m_sc[200];
double m_xf[200];
CString m_xfs[200];
CString m_kms[200];
CString m_cjs[200];
CString temp1;
CString temp2;
CString m_xuefen;
// Dialog Data
//{{AFX_DATA(CMyDlg)
enum { IDD = IDD_MY_DIALOG };
CComboBox m_xuefencb;
CListCtrl m_list;
CListBox m_show;
int m_num;
double m_allscore;
double m_aver;
double m_jidian;
double m_min;
double m_max;
CString m_test;
CString m_score;
CString m_timenow;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMyDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
///////////////////////////////////////////
//学分计算函数群组
private:
double Sscore(); //绩点×学分求和
double Sxuefen(); //总学分
double Saver(); //平均分
double Smax(); //最高分
double Smin(); //最低分
double Sjidian(); //计算学分绩点
void Supdate(); //更新数据
void Sshow(); //显示数据
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CMyDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnButton1();
afx_msg void OnButton2();
afx_msg void OnButton3();
virtual void OnCancel();
afx_msg void OnButton4();
afx_msg void OnButton6();
afx_msg void OnButton7();
afx_msg void OnClickList(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnTimer(UINT nIDEvent);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
BOOL m_bSerior;
int m_nTitleWideth;
RECT m_rcWindow,m_rcClient;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DLG_H__D972F477_7D67_4B42_AEA5_47416F8A66FF__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -