1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- // lyfzCheckBackupDlg.h : 头文件
- //
- #pragma once
- #include "ItrayIcon.h" // 托盘操作头文件 [6/8/2013 Z.t]
- #include "afxcmn.h"
- #include <vector>
- class DataBaseOpt;
- // ClyfzCheckBackupDlg 对话框
- class ClyfzCheckBackupDlg : public CDialog
- {
- // 构造
- public:
- ClyfzCheckBackupDlg(CWnd* pParent = NULL); // 标准构造函数
- // 对话框数据
- enum { IDD = IDD_LYFZCHECKBACKUP_DIALOG };
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
- virtual BOOL PreTranslateMessage(MSG* pMsg);
- // 实现
- protected:
- HICON m_hIcon;
- // 生成的消息映射函数
- virtual BOOL OnInitDialog();
- afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
- afx_msg void OnPaint();
- afx_msg void OnExit();
- afx_msg void OnShowWnd();
- afx_msg void OnDestroy();
- afx_msg void OnClose();
- afx_msg HCURSOR OnQueryDragIcon();
- afx_msg void OnBnClickedModifyBtn();
- afx_msg void OnBnClickedAddBtn();
- afx_msg void OnBnClickedDelBtn();
- afx_msg void OnBnClickedCheckBtn();
- afx_msg void OnBnClickedCancelBtn();
- afx_msg LRESULT OnTrayNotification(WPARAM wp, LPARAM lp);
- afx_msg LRESULT ShowPrompting(WPARAM wParam, LPARAM lParam);
- afx_msg void OnTimer(UINT_PTR nIDEvent);
- DECLARE_MESSAGE_MAP()
- public:
- void InitTrayIcon();
- void TrayRight();
- void TaskNotifyIcon();
- int LoadConnect(LPCTSTR lpPath);
- void GetBackupLogs(OUT CArray<CStringArray,CStringArray>& logsArr);
- int CheckTheStringIsNum(const CString& strNum);
- void GetDateRangeFilter(OUT CString& strStart, OUT CString& strEnd, OUT CString& strFilter);
- void ScreeningOrderDir();
- //备份完成回调
- static int WINAPI BackupCallBack(IN LPVOID lpParam1, IN LPVOID lpParam2, IN LPVOID lpParam3, IN LPVOID lpParam4, IN LPVOID lpParam5, IN LPVOID lpParam6);
- int BackupCallBackPro(IN LPVOID lpParam1, IN LPVOID lpParam2, IN LPVOID lpParam3, IN LPVOID lpParam4, IN LPVOID lpParam5, IN LPVOID lpParam6);
- int FindBakTargetDir(OUT CString& strTargetDir);
- public:
- // 托盘工作类;
- ITrayIcon m_trayIcon;
- CString m_strDays; // 天数
- BOOL m_bAutoRuning;
- BOOL m_bNoticeTray; // 是否响应托盘消息;
- BOOL m_isNotify; // 托盘是否显示;
- DataBaseOpt* m_pDBOpt; // 数据库操作
-
- std::vector<TCHAR*> m_vDBConnect; // 数据库连接组
- TCHAR m_szDBConnect[MAX_PATH];
- CArray<CStringArray,CStringArray> m_BackupLogsArr; // 备份记录集
- int m_nCountTime; //倒计时
- };
|