home *** CD-ROM | disk | FTP | other *** search
/ ActiveX Programming Unleashed CD / AXU.iso / source / chap18 / doserver / binditem.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-07-02  |  1.4 KB  |  56 lines

  1. // binditem.h : interface of the DocObject OLE server item class
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1995 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. #ifndef __BINDITEM_H__
  14. #define __BINDITEM_H__
  15.  
  16. #include "binddoc.h"    // for CDocObjectServerDoc definition
  17.  
  18. class CDocObjectServerItem : public COleServerItem
  19. {
  20.     DECLARE_DYNAMIC(CDocObjectServerItem)
  21.  
  22. // Constructors
  23. protected:
  24.     CDocObjectServerItem(COleServerDoc* pServerDoc, BOOL bAutoDelete);
  25.  
  26. // Attributes
  27. public:
  28.     CDocObjectServerDoc* GetDocument() const
  29.         { return (CDocObjectServerDoc*)COleServerItem::GetDocument(); }
  30.  
  31. // Overridables
  32. public:
  33.  
  34. // Implementation
  35. public:
  36.     virtual ~CDocObjectServerItem();
  37. #ifdef _DEBUG
  38.     virtual void AssertValid() const;
  39.     virtual void Dump(CDumpContext& dc) const;
  40. #endif
  41.  
  42.    // Overrides
  43. protected:
  44.    virtual void OnHide();
  45.    virtual void OnOpen();
  46.    virtual void OnShow();
  47.     // ClassWizard generated virtual function overrides
  48.     //{{AFX_VIRTUAL(CDocObjectServerItem)
  49.     //}}AFX_VIRTUAL
  50.  
  51. };
  52.  
  53. /////////////////////////////////////////////////////////////////////////////
  54.  
  55. #endif // __BINDITEM_H__
  56.