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 / iviewers / tlbodl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-27  |  2.7 KB  |  71 lines

  1. // tlbodl.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. // CTypeLibODLView view
  16.  
  17. class CTypeLibODLView : public CEditView
  18. {
  19. friend class CTypeLibWnd ;
  20. protected:
  21.     CTypeLibODLView();           // protected constructor used by dynamic creation
  22.     DECLARE_DYNCREATE(CTypeLibODLView)
  23.  
  24. // Attributes
  25. public:
  26.     CFont   m_Font ;
  27.  
  28. // Operations
  29. public:
  30.     HRESULT  DeCompileTypeLib( IStream* pstm, ITypeLib* ptlb, UINT uiIndent  = 0 ) ;
  31.     HRESULT  DeCompileTypedef( IStream* pstm, ITypeInfo* pti, UINT uiIndent  = 0 ) ;
  32.     HRESULT  DeCompileModule( IStream* pstm, ITypeInfo* pti, UINT uiIndent  = 0 ) ;
  33.     HRESULT  DeCompileInterface( IStream* pstm, ITypeInfo* pti, UINT uiIndent  = 0 ) ;
  34.     HRESULT  DeCompileDispinterface( IStream* pstm, ITypeInfo* pti, UINT uiIndent  = 0 ) ;
  35.     HRESULT  DeCompileCoClass( IStream* pstm, ITypeInfo* pti, UINT uiIndent  = 0 ) ;
  36.     HRESULT  DeCompileFunc( IStream* pstm, ITypeInfo* pti, MEMBERID memid, UINT uiIndent  = 0 ) ;
  37.     HRESULT  DumpFunc( IStream* pstm, ITypeInfo* pti, TYPEATTR* pattr, MEMBERID memid, UINT uiIndent  = 0 ) ;
  38.     HRESULT  DeCompileVar( IStream* pstm, ITypeInfo* pti, MEMBERID memid, UINT uiIndent  = 0 ) ;
  39.     HRESULT  DumpVar( IStream* pstm, ITypeInfo* pti, TYPEATTR* pattr, MEMBERID memid, UINT uiIndent  = 0 ) ;
  40.     HRESULT  DeCompileConst( IStream* pstm, ITypeInfo* pti, MEMBERID memid, UINT uiIndent  = 0, BOOL fConst = TRUE  ) ;
  41.     HRESULT  DumpConst( IStream* pstm, ITypeInfo* pti, TYPEATTR* pattr, MEMBERID memid, UINT uiIndent = 0, BOOL fConst = TRUE ) ;
  42. // Overrides
  43. public:
  44.     // ClassWizard generated virtual function overrides
  45.     //{{AFX_VIRTUAL(CTypeLibODLView)
  46.     public:
  47.     virtual void OnInitialUpdate();
  48.     protected:
  49.     virtual void OnDraw(CDC* pDC);      // overridden to draw this view
  50.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  51.     virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
  52.     //}}AFX_VIRTUAL
  53.  
  54. // Implementation
  55. protected:
  56.     virtual ~CTypeLibODLView();
  57. #ifdef _DEBUG
  58.     virtual void AssertValid() const;
  59.     virtual void Dump(CDumpContext& dc) const;
  60. #endif
  61.  
  62.     // Generated message map functions
  63. protected:
  64.     //{{AFX_MSG(CTypeLibODLView)
  65.     afx_msg void OnDestroy();
  66.     //}}AFX_MSG
  67.     DECLARE_MESSAGE_MAP()
  68. };
  69.  
  70. /////////////////////////////////////////////////////////////////////////////
  71.