home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / ole / oleview / regview.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-27  |  2.2 KB  |  85 lines

  1. // regview.h : header file
  2. //
  3.  
  4. // This is a part of the Microsoft Foundation Classes C++ library.
  5. // Copyright (C) 1992-1998 Microsoft Corporation
  6. // All rights reserved.
  7. //
  8. // This source code is only intended as a supplement to the
  9. // Microsoft Foundation Classes Reference and related
  10. // electronic documentation provided with the library.
  11. // See these sources for detailed information regarding the
  12. // Microsoft Foundation Classes product.
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15. // CRegistryView form view
  16.  
  17. #ifndef __REGVIEW_H__
  18. #define __REGVIEW_H__
  19.  
  20. #ifndef __AFXEXT_H__
  21. #include <afxext.h>
  22. #endif
  23.  
  24. class CRegistryView : public CFormView
  25. {
  26. protected:
  27.     CRegistryView();           // protected constructor used by dynamic creation
  28.     DECLARE_DYNCREATE(CRegistryView)
  29.  
  30. // Form Data
  31. public:
  32.     COle2ViewDoc* GetDocument();
  33.  
  34.     //{{AFX_DATA(CRegistryView)
  35.     enum { IDD = IDD_REGVIEW };
  36.     CStatic m_Name;
  37.     CStatic m_CLSID;
  38.     CStatic m_icon;
  39.     CTreeCtrl   m_tree;
  40.     //}}AFX_DATA
  41.  
  42. // Attributes
  43. public:
  44.  
  45. // Operations
  46. public:
  47.  
  48. // Overrides
  49.     // ClassWizard generated virtual function overrides
  50.     //{{AFX_VIRTUAL(CRegistryView)
  51.     public:
  52.     virtual void OnInitialUpdate();
  53.     protected:
  54.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  55.     virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
  56.     //}}AFX_VIRTUAL
  57.  
  58. // Implementation
  59. protected:
  60.     virtual ~CRegistryView();
  61. #ifdef _DEBUG
  62.     virtual void AssertValid() const;
  63.     virtual void Dump(CDumpContext& dc) const;
  64. #endif
  65.  
  66.     // Generated message map functions
  67.     //{{AFX_MSG(CRegistryView)
  68.     afx_msg void OnSize(UINT nType, int cx, int cy);
  69.     afx_msg void OnUnregister();
  70.     afx_msg void OnTreeViewItemExpanding(NMHDR* pNMHDR, LRESULT* pResult);
  71.     afx_msg void OnGetDispInfoTreeView(NMHDR* pNMHDR, LRESULT* pResult);
  72.     afx_msg void OnSetDispInfoTreeView(NMHDR* pNMHDR, LRESULT* pResult);
  73.     afx_msg void OnDeleteItemTreeView(NMHDR* pNMHDR, LRESULT* pResult);
  74.     //}}AFX_MSG
  75.     DECLARE_MESSAGE_MAP()
  76. };
  77.  
  78. #ifndef _DEBUG  // debug version in vw.cpp
  79. inline COle2ViewDoc* CRegistryView::GetDocument()
  80.    { return (COle2ViewDoc*) m_pDocument; }
  81. #endif
  82.  
  83. /////////////////////////////////////////////////////////////////////////////
  84. #endif
  85.