ClockDlg.h
资源名称:Clock.rar [点击查看]
上传用户:fltzhang
上传日期:2021-02-05
资源大小:1886k
文件大小:2k
源码类别:
Static控件
开发平台:
Visual C++
- // ClockDlg.h : header file
- //
- #if !defined(AFX_CLOCKDLG_H__36C32901_A070_42F2_80FB_FED5D772B6B5__INCLUDED_)
- #define AFX_CLOCKDLG_H__36C32901_A070_42F2_80FB_FED5D772B6B5__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- /////////////////////////////////////////////////////////////////////////////
- // CClockDlg dialog
- class CClockDlg : public CDialog
- {
- // Construction
- public:
- CClockDlg(CWnd* pParent = NULL); // standard constructor
- // Dialog Data
- //{{AFX_DATA(CClockDlg)
- enum { IDD = IDD_CLOCK_DIALOG };
- CDynamicClock m_DyClock;
- //}}AFX_DATA
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CClockDlg)
- public:
- virtual BOOL PreTranslateMessage(MSG* pMsg);
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- HICON m_hIcon;
- // Generated message map functions
- //{{AFX_MSG(CClockDlg)
- virtual BOOL OnInitDialog();
- afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
- afx_msg void OnPaint();
- afx_msg HCURSOR OnQueryDragIcon();
- afx_msg void OnTimer(UINT nIDEvent);
- afx_msg void OnBtnSelectFont();
- afx_msg void OnBtnShowTime();
- afx_msg void OnBtnSelectColor();
- afx_msg void OnBtnGetRect();
- afx_msg void OnBtnSetTimeFormat();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- private:
- void GetCurrentTime();
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_CLOCKDLG_H__36C32901_A070_42F2_80FB_FED5D772B6B5__INCLUDED_)