📄 adbcalendardlg.h
字号:
// AdbCalendarDlg.h : header file
//
#if !defined(AFX_ADBCALENDARDLG_H__3411A3F3_1FD1_4EA3_BF69_D9BA6255498E__INCLUDED_)
#define AFX_ADBCALENDARDLG_H__3411A3F3_1FD1_4EA3_BF69_D9BA6255498E__INCLUDED_
#include "..\CONCTRL\JButton.h" // Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CAdbCalendarDlg dialog
class CAdbCalendarDlg : public CDialog
{
// Construction
public:
int GetCellData(int nrow,int ncol);
int ncurshowmonth;
void PaintYAndM();
int GetMonthMax(int nyear,int nmonth);
void PaintTable();
CAdbCalendarDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CAdbCalendarDlg)
enum { IDD = IDD_ADBCALENDAR_DIALOG };
// NOTE: the ClassWizard will add data members here
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CAdbCalendarDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
CJButton m_butymright;
CJButton m_butymleft;
CJButton m_butcancel;
CJButton m_butcal;
CString m_crdatestr;
void PaintCurDate();
int ncurdcol;
int ncurdrow;
void Initconctrl();
void PaintWeekSign();
void PaintDate(int nyear,int nmonth);
void JDrawText(int nrow,int ncol,CString strtxt,BOOL blul);
CRect GetCellRect(int nrow,int ncol);
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CAdbCalendarDlg)
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnButymleft();
afx_msg void OnButymright();
afx_msg void OnButcancel();
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
afx_msg void OnButcal();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
int nYMTop;
int nYMLeft;
int ncurshowyear;
int nfocusrow;
int nfocuscol;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_ADBCALENDARDLG_H__3411A3F3_1FD1_4EA3_BF69_D9BA6255498E__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -