clockdlg.h

来自「个人计算机定时自动执行软件,是 一个值得看看的程序。」· C头文件 代码 · 共 196 行

H
196
字号
// clockDlg.h : header file
//

#if !defined(AFX_CLOCKDLG_H__F4E5B2A7_10B9_4304_A20D_E02DE0504950__INCLUDED_)
#define AFX_CLOCKDLG_H__F4E5B2A7_10B9_4304_A20D_E02DE0504950__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#define WM_NOTIFYICON	WM_USER+5

/////////////////////////////////////////////////////////////////////////////
// CClockDlg dialog

#include "ClockSet.h"
#include "NetTimeDlg.h"
#include "QuickDef.h"
#include "FaceBrowse.h"
#include "AwakeDlg.h"
#include "Calendar.h"
#include "Quickdlg.h"




class CClockDlg : public CDialog
{
// Construction
public:
	CClockDlg(CWnd* pParent = NULL);	// standard constructor
	~CClockDlg();	

// Dialog Data
	//{{AFX_DATA(CClockDlg)
	enum { IDD = IDD_CLOCK_DIALOG };
	CString	m_nowTime;

	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CClockDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL
public:

	int m_nSecond;  //前一次扫描时间:秒
	int m_nNumX;
	int m_nNumY;
	CBitmap m_mapB;
	int m_nh1,m_nh2,m_nm1,m_nm2,m_ns1,m_ns2;
	int m_cyclecount;//循环提醒记时器。

private:
	///////////////////////////////////////
	int m_oneh;
	int m_onehcount;//一小时记数器
	int m_twoh;
	int m_twohcount;//二小时记数器
	int m_threeh;
	int m_threehcount;//三小时记数器
	int m_sixh;
	int m_sixhcount;//六小时记数器
	int m_nineh;
	int m_ninehcount;//九小时记数器
	int m_twelveh;
	int m_twelvehcount;//十二小时记数器
	int m_fifteenh;
	int m_fifteenhcount;//十五小时记数器
	
	int m_one;
	int m_onetimecount;//一分钟记数器
	int m_five;
	int m_fivetimecount;//五分钟记数器
	int m_ten;
	int m_tentimecount;//十分钟记数器
	int m_twenty;
	int m_twentytimecount;//二十分钟记数器
	int m_thirty;
	int m_thirtytimecount;//三十分钟记数器
	int m_fortyfive;
	int m_fortyfivetimecount;//四十五分钟记数器

	QUICK quick0;
	QUICK quick1;
	QUICK quick2;
	QUICK quick3;
	QUICK quick4;


	int m_setquickdef0;//快速定时变量,确定后,菜单变为“取消定时器”,再点击为设置定时器
	int m_count0;//记数器
	int m_countsecond0;

	int m_setquickdef1;
	int m_count1;//记数器
	int m_countsecond1;

	int m_setquickdef2;
	int m_count2;//记数器
	int m_countsecond2;

	int m_setquickdef3;
	int m_count3;//记数器
	int m_countsecond3;

	int m_setquickdef4;
	int m_count4;//记数器
	int m_countsecond4;

public:	
	void FreeData();
	void LoadData();
	void ClosetoClock(void);
	void ChecktoClock(void);
	CDWordArray  m_MissionArray;//类,构造一个空的双字节的数组,储存指针

	//////////////////////////////////////////////////////////////
	void PopupMainMenu(void);//主菜单	
	BOOL	m_isNotifyIcon;//最大化最小化变量
	int		m_alwayfront;//总在最前面变量
	int		m_autorun;//开机自动运行变量
	int		m_minstartup;//最小化运行变量
	RECT	move_rect;
	CClockSet	m_clockset;//闹钟设置对话框
	CNetTimeDlg m_nettime;//网络对时对话框
	CQuickDef	m_quickdef;//快速定时对话框
	CFaceBrowse	m_facebrowse;//面板设置对话框
//	CAwakeDlg	m_awake;//闹钟到时,提醒对话框
	CCalendar	m_showcalendar;//显示日历

	HRGN BitmapToRegion(HBITMAP hBmp, COLORREF cTransparentColor, COLORREF cTolerance=NULL);


// Implementation
protected:
	HICON m_hIcon;
	NOTIFYICONDATA m_nd;
	// Generated message map functions
	//{{AFX_MSG(CClockDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnDestroy();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnAbout();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnClose();
	afx_msg void OnExit();
	afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
	afx_msg void OnShowCalendar();
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	afx_msg void OnMenuMin();
	afx_msg void OnAlwayFront();
	afx_msg void OnAutoRun();
	afx_msg void OnMinStartup();
	afx_msg void OnAdjustNetTime();
	afx_msg void OnClockEdit();
	afx_msg void OnQuickDef();
	afx_msg void OnFaceBrowse();
	afx_msg void OnErrorReport();
	afx_msg void OnOther();
	afx_msg void OnIdea();
	afx_msg void OnContorlFace();
	afx_msg void OnAfterOneH();
	afx_msg void OnAfterFifteenH();
	afx_msg void OnAfterFiveM();
	afx_msg void OnAfteFortyfiveM();
	afx_msg void OnAfterNineH();
	afx_msg void OnAfterSixH();
	afx_msg void OnAfterTenM();
	afx_msg void OnAfterThirtyM();
	afx_msg void OnAfterThreeH();
	afx_msg void OnAfterTwentyM();
	afx_msg void OnAfterTwoH();
	afx_msg void OnAfterTwelveH();
	afx_msg void OnAfterOneM();
	afx_msg void OnQuickDef1();
	afx_msg void OnQuickDef2();
	afx_msg void OnQuickDef3();
	afx_msg void OnQuickDef4();
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
	afx_msg LRESULT OnHotKey(WPARAM wp,LPARAM lp);
	//}}AFX_MSG
	afx_msg void OnNotifyIcon(WPARAM wParam, LPARAM lParam);
	afx_msg BOOL OnQueryEndSession();
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CLOCKDLG_H__F4E5B2A7_10B9_4304_A20D_E02DE0504950__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?