?? loaddlg.h
字號:
// LoadDlg.h : header file
//
#if !defined(AFX_LOADDLG_H__FE0CD977_3EFE_42E9_95FF_A0A05EB54E81__INCLUDED_)
#define AFX_LOADDLG_H__FE0CD977_3EFE_42E9_95FF_A0A05EB54E81__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CLoadDlg dialog
struct Record
{
int startDate;//開始月
int currDate;//償還當月
double corpus;//本金
double passCorpus;//已歸還本金累計額(*)
int tolalMonth;//在當月年利息下的總月數
double interest;//當月年利息
double pay;//當月償還(*)
};
#include <afxtempl.h>
class CLoadDlg : public CDialog
{
// Construction
public:
CLoadDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CLoadDlg)
enum { IDD = IDD_LOAD_DIALOG };
CEdit m_ctrlEdit7;
CEdit m_ctrlEdit6;
CEdit m_ctrlEdit5;
CEdit m_ctrlEdit4;
CEdit m_ctrlEdit3;
CEdit m_ctrlEdit2;
CEdit m_ctrlEdit1;
CListCtrl m_ctrlTarget;
BOOL m_bEquality;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CLoadDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
void StruStr(CString& s, Record& r, int n);//n ==1, Stru -> Str; n == 2, Str -> Stru
void Compute(double A, double r, int N, int n, double& V, double& a);
double m_fAmount;//總額(萬元)
int m_nStartDate;//200401
double m_fcurInterest;
CArray<Record, Record&> m_arrRecords;
int count;
// Generated message map functions
//{{AFX_MSG(CLoadDlg)
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();
afx_msg void OnCheck1();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_LOADDLG_H__FE0CD977_3EFE_42E9_95FF_A0A05EB54E81__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -