123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- // HJHomeworkDlg.h : 头文件
- //
- #pragma once
- #include "ComboBoxExt.h"
- #include "PushButton.h"
- #include "UnZipManager.h"
- // CHJHomeworkDlg 对话框
- class CHJHomeworkDlg : public CDialogEx
- {
- // 构造
- public:
- CHJHomeworkDlg(CWnd* pParent = NULL); // 标准构造函数
- // 对话框数据
- enum { IDD = IDD_HJHOMEWORK_DIALOG };
- enum{
- IDC_COMBO_FOLDER = 0x1000,
- IDC_BUTTON_MONITOR,
- IDC_BUTTON_HIDE,
- };
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
- // 实现
- protected:
- HICON m_hIcon;
- virtual BOOL OnInitDialog();
- afx_msg void OnPaint();
- afx_msg HCURSOR OnQueryDragIcon();
- afx_msg void OnClose();
- afx_msg BOOL OnCopyData(CWnd* pWnd, COPYDATASTRUCT* pCopyDataStruct);
- DECLARE_MESSAGE_MAP()
- virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
- void InitSharePath();
- void OnMonitor();
- void OnHide();
- void RegisterNotify();
- static void PirntLog(const wchar_t* pszLog);
- public:
- CComboBoxExt m_combo_folder; // 选择文件夹
- CPushButton m_btn_monitor;
- CPushButton m_btn_hide;
- CButton m_btn_test;
- CUnZipManager m_unZipManager;
- CRichEditCtrl m_edit_message;
- HFONT m_hFontMessage;
- HANDLE m_hMutex;
- NOTIFYICONDATA m_notifyIcon;
- BOOL m_bMonitor;
- };
|