HJHomeworkDlg.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. // HJHomeworkDlg.h : 头文件
  2. //
  3. #pragma once
  4. #include "ComboBoxExt.h"
  5. #include "PushButton.h"
  6. #include "UnZipManager.h"
  7. // CHJHomeworkDlg 对话框
  8. class CHJHomeworkDlg : public CDialogEx
  9. {
  10. // 构造
  11. public:
  12. CHJHomeworkDlg(CWnd* pParent = NULL); // 标准构造函数
  13. // 对话框数据
  14. enum { IDD = IDD_HJHOMEWORK_DIALOG };
  15. enum{
  16. IDC_COMBO_FOLDER = 0x1000,
  17. IDC_BUTTON_MONITOR,
  18. IDC_BUTTON_HIDE,
  19. };
  20. protected:
  21. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
  22. // 实现
  23. protected:
  24. HICON m_hIcon;
  25. virtual BOOL OnInitDialog();
  26. afx_msg void OnPaint();
  27. afx_msg HCURSOR OnQueryDragIcon();
  28. afx_msg void OnClose();
  29. afx_msg BOOL OnCopyData(CWnd* pWnd, COPYDATASTRUCT* pCopyDataStruct);
  30. DECLARE_MESSAGE_MAP()
  31. virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
  32. void InitSharePath();
  33. void OnMonitor();
  34. void OnHide();
  35. void RegisterNotify();
  36. static void PirntLog(const wchar_t* pszLog);
  37. public:
  38. CComboBoxExt m_combo_folder; // 选择文件夹
  39. CPushButton m_btn_monitor;
  40. CPushButton m_btn_hide;
  41. CButton m_btn_test;
  42. CUnZipManager m_unZipManager;
  43. CRichEditCtrl m_edit_message;
  44. HFONT m_hFontMessage;
  45. HANDLE m_hMutex;
  46. NOTIFYICONDATA m_notifyIcon;
  47. BOOL m_bMonitor;
  48. };