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

  1. // iviewer.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. #ifndef __IVIEWER_H__
  15. #define __IVIEWER_H__
  16. /////////////////////////////////////////////////////////////////////////////
  17. // CInterfaceViewer command target
  18.  
  19. class CInterfaceViewer : public CCmdTarget
  20. {
  21. public:
  22.     DECLARE_DYNAMIC(CInterfaceViewer)
  23.     CInterfaceViewer();           // protected constructor used by dynamic creation
  24.     virtual ~CInterfaceViewer();
  25.  
  26. // Attributes
  27. public:
  28.  
  29. // Operations
  30. public:
  31.  
  32. // Overrides
  33.     // ClassWizard generated virtual function overrides
  34.     //{{AFX_VIRTUAL(CInterfaceViewer)
  35.     //}}AFX_VIRTUAL
  36.     virtual HRESULT OnView(HWND hwndParent, REFIID riid, LPUNKNOWN punk);
  37.  
  38. // Implementation
  39. protected:
  40.  
  41.     // Generated message map functions
  42.     //{{AFX_MSG(CInterfaceViewer)
  43.         // NOTE - the ClassWizard will add and remove member functions here.
  44.     //}}AFX_MSG
  45.  
  46.     // Implemented interfaces
  47.     //
  48. public:
  49.     DECLARE_MESSAGE_MAP()
  50.  
  51.     // IInterfaceViewer
  52.     BEGIN_INTERFACE_PART(InterfaceViewer, IInterfaceViewer)
  53.         STDMETHOD(View)(HWND hwndParent, REFIID riid, LPUNKNOWN punk);
  54.     END_INTERFACE_PART(InterfaceViewer)
  55.     DECLARE_INTERFACE_MAP()
  56.  
  57. };
  58.  
  59. #endif // __IVIEWER_H__
  60.