home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / ole / superpad / paddoc.h < prev    next >
C/C++ Source or Header  |  1998-03-26  |  1KB  |  53 lines

  1. // paddoc.h : interface of the CPadDoc class
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1992-1998 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.  
  14. #ifndef __PADDOC_H__
  15. #define __PADDOC_H__
  16.  
  17. class CEmbeddedItem;
  18.  
  19. class CPadDoc : public COleServerDoc
  20. {
  21.     DECLARE_DYNCREATE(CPadDoc)
  22.  
  23. // Constructors
  24. public:
  25.     CPadDoc();
  26.  
  27. //Operations
  28. public:
  29.     void SetSelection(int nBeg, int nEnd);
  30.  
  31. // Implementation
  32. public:
  33.     virtual COleServerItem* OnGetEmbeddedItem();
  34.     virtual COleServerItem* OnGetLinkedItem(LPCTSTR lpszItemName);
  35.  
  36. protected:
  37.     virtual void Serialize(CArchive& ar);   // overridden for document i/o
  38.     virtual void DeleteContents();
  39.     virtual ~CPadDoc();
  40.  
  41.     //{{AFX_MSG(CPadDoc)
  42.     afx_msg void OnViewUpdatenow();
  43.     afx_msg void OnCancelInplace();
  44.     //}}AFX_MSG
  45.     DECLARE_MESSAGE_MAP()
  46.  
  47.     friend class CEmbeddedItem;
  48. };
  49.  
  50. #endif  // __PADDOC_H__
  51.  
  52. /////////////////////////////////////////////////////////////////////////////
  53.