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

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