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 / dispatch.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-27  |  2.2 KB  |  85 lines

  1. // typelib.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. // CDispatchViewer command target
  16.  
  17. class CDispatchViewer : public CInterfaceViewer
  18. {
  19.     DECLARE_DYNCREATE(CDispatchViewer)
  20. protected:
  21.     CDispatchViewer();           // protected constructor used by dynamic creation
  22.  
  23. // Attributes
  24. public:
  25.  
  26. // Operations
  27. public:
  28.  
  29. // Overrides
  30.     // ClassWizard generated virtual function overrides
  31.     //{{AFX_VIRTUAL(CDispatchViewer)
  32.     public:
  33. //  virtual void OnFinalRelease();
  34.     //}}AFX_VIRTUAL
  35.     virtual HRESULT OnView(HWND hwndParent, REFIID riid, LPUNKNOWN punk);
  36.  
  37. // Implementation
  38. protected:
  39.     virtual ~CDispatchViewer();
  40.  
  41.     // Generated message map functions
  42.     //{{AFX_MSG(CDispatchViewer)
  43.         // NOTE - the ClassWizard will add and remove member functions here.
  44.     //}}AFX_MSG
  45.  
  46.     DECLARE_MESSAGE_MAP()
  47.     DECLARE_OLECREATE(CDispatchViewer)
  48. };
  49.  
  50. /////////////////////////////////////////////////////////////////////////////
  51. /////////////////////////////////////////////////////////////////////////////
  52. // CDispatchDlg dialog
  53.  
  54. class CDispatchDlg : public CDialog
  55. {
  56. // Construction
  57. public:
  58.     CDispatchDlg(CWnd* pParent = NULL);   // standard constructor
  59.  
  60. // Dialog Data
  61.     //{{AFX_DATA(CDispatchDlg)
  62.     enum { IDD = IDD_DISPATCH };
  63.     CButton m_btnViewTypeInfo;
  64.     UINT    m_uiTypeInfoCount;
  65.     //}}AFX_DATA
  66.  
  67.     IDispatch* m_pdisp ;
  68. // Overrides
  69.     // ClassWizard generated virtual function overrides
  70.     //{{AFX_VIRTUAL(CDispatchDlg)
  71.     protected:
  72.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  73.     //}}AFX_VIRTUAL
  74.  
  75. // Implementation
  76. protected:
  77.  
  78.     // Generated message map functions
  79.     //{{AFX_MSG(CDispatchDlg)
  80.     afx_msg void OnViewTypeInfo();
  81.     virtual BOOL OnInitDialog();
  82.     //}}AFX_MSG
  83.     DECLARE_MESSAGE_MAP()
  84. };
  85.