WZDDOC.H
资源名称:B43.rar [点击查看]
上传用户:leishk
上传日期:2022-03-16
资源大小:3649k
文件大小:2k
源码类别:
ListView/ListBox
开发平台:
Visual C++
- // WzdDoc.h : interface of the CWzdDoc class
- //
- /////////////////////////////////////////////////////////////////////////////
- #if !defined(AFX_WZDDOC_H__CA9038EE_B0DF_11D1_A18C_DCB3C85EBD34__INCLUDED_)
- #define AFX_WZDDOC_H__CA9038EE_B0DF_11D1_A18C_DCB3C85EBD34__INCLUDED_
- #if _MSC_VER >= 1000
- #pragma once
- #endif // _MSC_VER >= 1000
- #include "WzdInfo.h"
- #include <afxtempl.h>
- //enum {
- // ICON_LIST_VIEW,
- // LIST_LIST_VIEW,
- // REPORT_LIST_VIEW,
- // SMALL_ICON_LIST_VIEW,
- // TREE_VIEW_UP_LEVEL,
- // TREE_VIEW_SELECT
- // };
- //#define TREE_VIEW_ONLY 0x10
- //#define LIST_VIEW_ONLY 0x20
- enum {
- UPDATE_ALL_VIEWS=0,
- LIST_VIEW_ONLY=0x10,
- ICON_LIST_VIEW,
- LIST_LIST_VIEW,
- SMALL_ICON_LIST_VIEW,
- REPORT_LIST_VIEW,
- TREE_VIEW_ONLY=0x20,
- TREE_VIEW_SELECT,
- TREE_VIEW_UP_LEVEL,
- TREE_VIEW_COLLAPSE
- };
- class CWzdDoc : public CDocument
- {
- protected: // create from serialization only
- CWzdDoc();
- DECLARE_DYNCREATE(CWzdDoc)
- // Attributes
- public:
- void SaveSelection(CWzdInfo *pSelectionInfo,int nMode);
- CWzdInfo *GetSelection(){return m_pSelectionInfo;};
- CList<CWzdInfo*,CWzdInfo*> *GetWzdList(){return &m_list;};
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CWzdDoc)
- public:
- virtual BOOL OnNewDocument();
- virtual void Serialize(CArchive& ar);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CWzdDoc();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected:
- // Generated message map functions
- protected:
- //{{AFX_MSG(CWzdDoc)
- afx_msg void OnIconMode();
- afx_msg void OnListMode();
- afx_msg void OnReportMode();
- afx_msg void OnSmalliconMode();
- afx_msg void OnUplevel();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- private:
- CWzdInfo *m_pSelectionInfo;
- CList<CWzdInfo*,CWzdInfo*> m_list;
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_WZDDOC_H__CA9038EE_B0DF_11D1_A18C_DCB3C85EBD34__INCLUDED_)