WZDDOC.H
上传用户:leishk
上传日期:2022-03-16
资源大小:3649k
文件大小:2k
源码类别:

ListView/ListBox

开发平台:

Visual C++

  1. // WzdDoc.h : interface of the CWzdDoc class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_WZDDOC_H__CA9038EE_B0DF_11D1_A18C_DCB3C85EBD34__INCLUDED_)
  5. #define AFX_WZDDOC_H__CA9038EE_B0DF_11D1_A18C_DCB3C85EBD34__INCLUDED_
  6. #if _MSC_VER >= 1000
  7. #pragma once
  8. #endif // _MSC_VER >= 1000
  9. #include "WzdInfo.h"
  10. #include <afxtempl.h>
  11. //enum {
  12. // ICON_LIST_VIEW,
  13. // LIST_LIST_VIEW,
  14. // REPORT_LIST_VIEW,
  15. // SMALL_ICON_LIST_VIEW,
  16. // TREE_VIEW_UP_LEVEL,
  17. // TREE_VIEW_SELECT
  18. // };
  19. //#define TREE_VIEW_ONLY 0x10
  20. //#define LIST_VIEW_ONLY 0x20
  21. enum {
  22. UPDATE_ALL_VIEWS=0,
  23. LIST_VIEW_ONLY=0x10,
  24. ICON_LIST_VIEW,
  25. LIST_LIST_VIEW,
  26. SMALL_ICON_LIST_VIEW,
  27. REPORT_LIST_VIEW,
  28. TREE_VIEW_ONLY=0x20,
  29. TREE_VIEW_SELECT,
  30. TREE_VIEW_UP_LEVEL,
  31. TREE_VIEW_COLLAPSE
  32. };
  33. class CWzdDoc : public CDocument
  34. {
  35. protected: // create from serialization only
  36. CWzdDoc();
  37. DECLARE_DYNCREATE(CWzdDoc)
  38. // Attributes
  39. public:
  40. void SaveSelection(CWzdInfo *pSelectionInfo,int nMode);
  41. CWzdInfo *GetSelection(){return m_pSelectionInfo;};
  42. CList<CWzdInfo*,CWzdInfo*> *GetWzdList(){return &m_list;};
  43. // Operations
  44. public:
  45. // Overrides
  46. // ClassWizard generated virtual function overrides
  47. //{{AFX_VIRTUAL(CWzdDoc)
  48. public:
  49. virtual BOOL OnNewDocument();
  50. virtual void Serialize(CArchive& ar);
  51. //}}AFX_VIRTUAL
  52. // Implementation
  53. public:
  54. virtual ~CWzdDoc();
  55. #ifdef _DEBUG
  56. virtual void AssertValid() const;
  57. virtual void Dump(CDumpContext& dc) const;
  58. #endif
  59. protected:
  60. // Generated message map functions
  61. protected:
  62. //{{AFX_MSG(CWzdDoc)
  63. afx_msg void OnIconMode();
  64. afx_msg void OnListMode();
  65. afx_msg void OnReportMode();
  66. afx_msg void OnSmalliconMode();
  67. afx_msg void OnUplevel();
  68. //}}AFX_MSG
  69. DECLARE_MESSAGE_MAP()
  70. private:
  71. CWzdInfo *m_pSelectionInfo;
  72. CList<CWzdInfo*,CWzdInfo*> m_list;
  73. };
  74. /////////////////////////////////////////////////////////////////////////////
  75. //{{AFX_INSERT_LOCATION}}
  76. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  77. #endif // !defined(AFX_WZDDOC_H__CA9038EE_B0DF_11D1_A18C_DCB3C85EBD34__INCLUDED_)