// ClyfzAttendanceDlg.h : 头文件 // #pragma once #include "afxcmn.h" #include "ItrayIcon.h" // 托盘操作头文件 [6/8/2013 Z.t] #include "CDFKAttendOcx.h" #include "fp_clockctrl1.h" #include "MachineMgrBase.h" // ClyfzAttendanceDlg 对话框 class ClyfzAttendanceDlg : public CDialog { // 构造 public: ClyfzAttendanceDlg(CWnd* pParent = NULL); // 标准构造函数 // 对话框数据 enum { IDD = IDD_LYFZAOXIN_DIALOG }; protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持 // 实现 protected: HICON m_hIcon; // 生成的消息映射函数 virtual BOOL OnInitDialog(); //afx_msg void OnClose(); afx_msg void OnExit(); afx_msg void OnShowwindow(); afx_msg void OnAutorun(); afx_msg void OnReadalllog(); afx_msg void OnInitAttend(); afx_msg void OnSysCommand(UINT nID, LPARAM lParam); afx_msg void OnPaint(); afx_msg HCURSOR OnQueryDragIcon(); afx_msg void OnDestroy(); afx_msg void OnClose(); DECLARE_MESSAGE_MAP() public: void InitCtrlList(); int InitDeviceData(); void ChangeCtrlStatus(int nType = 0); void ReadConnectInfo(DEVICECFG& cfg); int GetVerifyMode(const int nMode, CString& strMode); void TrayRight(); void InitTrayIcon(); void TaskNotifyIcon(); int ReadUserInfo(); public: afx_msg void OnBnClickedConfig(); //软件配置 afx_msg void OnBnClickedDbConnect(); //数据库连接 afx_msg void OnBnClickedConnectSet(); //连接 afx_msg void OnBnClickedBlack(); //断开 afx_msg void OnBnClickedSaveBtn(); //保存记录 afx_msg void OnBnClickedFilelogBtn(); //文件记录 afx_msg void OnBnClickedAllsubmitBtn(); //全部提交 afx_msg void OnBnClickedSelsubmitBtn(); //选择提交 afx_msg void OnBnClickedDelLogBtn(); //删除记录 afx_msg void OnBnClickedRealtimeconfirmBtn(); //实时提交 afx_msg void OnBnClickedStopconfirmBtn(); //停止提交 afx_msg void OnTimer(UINT_PTR nIDEvent); afx_msg LRESULT ShowPrompting(WPARAM wParam,LPARAM lParam); afx_msg LRESULT ShowRealTimeLog(WPARAM wParam,LPARAM lParam); afx_msg LRESULT OnTaskBarCreated(WPARAM wp, LPARAM lp); afx_msg LRESULT OnTrayNotification(WPARAM wp, LPARAM lp); afx_msg void OnBnClickedClearMgrBtn(); private: // 托盘工作类; ITrayIcon m_trayIcon; CDFKAttendOcx m_FKAttend; CFp_clockctrl1 m_FP_CLOCK; CRichEditCtrl m_TipsMsgWnd; CListCtrl m_ctrlListShow; DEVICECFG m_Devicecfg; DWORD m_dwRecord; BOOL m_bAutoRuning; BOOL m_bNoticeTray; // 是否响应托盘消息; BOOL m_isNotify; // 托盘是否显示; CArray m_strArrayRenyuan; };