59 lines
1.8 KiB
C++
59 lines
1.8 KiB
C++
// cntritem.h : interface of the CWordPadCntrItem class
|
|
//
|
|
// This file is a part of the XTREME TOOLKIT PRO MFC class library.
|
|
// (c)1998-2008 Codejock Software, All Rights Reserved.
|
|
//
|
|
// THIS SOURCE FILE IS THE PROPERTY OF CODEJOCK SOFTWARE AND IS NOT TO BE
|
|
// RE-DISTRIBUTED BY ANY MEANS WHATSOEVER WITHOUT THE EXPRESSED WRITTEN
|
|
// CONSENT OF CODEJOCK SOFTWARE.
|
|
//
|
|
// THIS SOURCE CODE CAN ONLY BE USED UNDER THE TERMS AND CONDITIONS OUTLINED
|
|
// IN THE XTREME TOOLKIT PRO LICENSE AGREEMENT. CODEJOCK SOFTWARE GRANTS TO
|
|
// YOU (ONE SOFTWARE DEVELOPER) THE LIMITED RIGHT TO USE THIS SOFTWARE ON A
|
|
// SINGLE COMPUTER.
|
|
//
|
|
// CONTACT INFORMATION:
|
|
// support@codejock.com
|
|
// http://www.codejock.com
|
|
//
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
class CWordPadDoc;
|
|
class CWordPadView;
|
|
|
|
class CWordPadCntrItem : public CRichEditCntrItem
|
|
{
|
|
DECLARE_SERIAL(CWordPadCntrItem)
|
|
|
|
// Constructors
|
|
public:
|
|
CWordPadCntrItem(REOBJECT* preo = NULL, CWordPadDoc* pContainer = NULL);
|
|
// Note: pContainer is allowed to be NULL to enable IMPLEMENT_SERIALIZE.
|
|
// IMPLEMENT_SERIALIZE requires the class have a constructor with
|
|
// zero arguments. Normally, OLE items are constructed with a
|
|
// non-NULL document pointer.
|
|
|
|
// Attributes
|
|
public:
|
|
CWordPadDoc* GetDocument()
|
|
{ return (CWordPadDoc*)COleClientItem::GetDocument(); }
|
|
CWordPadView* GetActiveView()
|
|
{ return (CWordPadView*)COleClientItem::GetActiveView(); }
|
|
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CWordPadCntrItem)
|
|
public:
|
|
protected:
|
|
//}}AFX_VIRTUAL
|
|
|
|
BOOL OnShowControlBars(CFrameWnd* pFrameWnd, BOOL bShow);
|
|
|
|
// Implementation
|
|
public:
|
|
#ifdef _DEBUG
|
|
virtual void AssertValid() const;
|
|
virtual void Dump(CDumpContext& dc) const;
|
|
#endif
|
|
};
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|