DlgShowNetShareInfo.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. #pragma once
  2. #include "afxcmn.h"
  3. #include "afxwin.h"
  4. // CDlgShowNetShareInfo 对话框
  5. class CDlgShowNetShareInfo : public CDialog
  6. {
  7. DECLARE_DYNAMIC(CDlgShowNetShareInfo)
  8. public:
  9. CDlgShowNetShareInfo(CWnd* pParent = NULL); // 标准构造函数
  10. virtual ~CDlgShowNetShareInfo();
  11. // 对话框数据
  12. enum { IDD = DLG_SHOWNETSHAREINFO };
  13. protected:
  14. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
  15. virtual void OnOK();
  16. virtual void OnCancel();
  17. DECLARE_MESSAGE_MAP()
  18. public:
  19. virtual BOOL OnInitDialog();
  20. virtual BOOL DestroyWindow();
  21. public:
  22. void InitCobCtrl();
  23. void InitListCtrl();
  24. void FillDataIntoList();
  25. // NetShareInfo列表信息
  26. CListCtrl m_list;
  27. CComboBox m_cob;
  28. int m_nCurSel;
  29. BOOL m_bItemChang;
  30. // 分店域名
  31. CString m_strbranchid;
  32. // 共享目录
  33. CString m_strsharedirectory;
  34. // 硬盘安全容量值
  35. int m_nDiskSafeCapacity;
  36. // 更换存储硬盘的容量值
  37. int m_nDiskChangeCapacity;
  38. // 共享目录的优先级
  39. int m_nPriority;
  40. afx_msg void OnBnClickedSave();
  41. afx_msg void OnBnClickedAddnetshareinfo();
  42. afx_msg void OnEnChangeBranchname();
  43. afx_msg void OnEnChangeSharedirectory();
  44. afx_msg void OnEnChangeEnablecapacity();
  45. afx_msg void OnEnChangeChangecapacity();
  46. afx_msg void OnEnChangePriority();
  47. afx_msg void OnBnClickedEnabledirectory();
  48. afx_msg void OnCbnSelchangePhototype();
  49. afx_msg void OnNMClickNetshareinfo(NMHDR *pNMHDR, LRESULT *pResult);
  50. afx_msg void OnBnClickedDelete();
  51. };