calenderdlg.h
来自「本程序是用VC++实现的.要求根据任意输入的年月日,判断该日是该年的哪天,程序实」· C头文件 代码 · 共 56 行
H
56 行
// calenderDlg.h : header file
//
#if !defined(AFX_CALENDERDLG_H__56568FE0_B5BB_437D_9497_6F35A6DF58C4__INCLUDED_)
#define AFX_CALENDERDLG_H__56568FE0_B5BB_437D_9497_6F35A6DF58C4__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CCalenderDlg dialog
class CCalenderDlg : public CDialog
{
// Construction
public:
CCalenderDlg(CWnd* pParent = NULL); // standard constructor
public:
bool isLeapYear(int year);
int countDays(int year,int month);
bool inputRight(int year,int month,int day);
// Dialog Data
//{{AFX_DATA(CCalenderDlg)
enum { IDD = IDD_CALENDER_DIALOG };
CString m_input;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCalenderDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CCalenderDlg)
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_CALENDERDLG_H__56568FE0_B5BB_437D_9497_6F35A6DF58C4__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?