// Copyright (C) 2000
//          by the Massachusetts Institute of Technology
//
//    Export of this software from the United States of America may
//    require a specific license from the United States Government.  It
//    is the responsibility of any person or organization contemplating
//    export to obtain such a license before exporting.
//
// WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
// distribute this software and its documentation for any purpose and
// without fee is hereby granted, provided that the above copyright
// notice appear in all copies and that both that copyright notice and
// this permission notice appear in supporting documentation, and that
// the name of M.I.T. not be used in advertising or publicity pertaining
// to distribution of the software without specific, written prior
// permission.  M.I.T. makes no representations about the suitability of
// this software for any purpose.  It is provided "as is" without express
// or implied warranty.

// WinsshCntrItem.h: interface for the CWinsshCntrItem class.
//
//////////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////////
//         This class is just here to make CRichEdit Doc work..  
//         CWisshDoc won't instantiate without this control Item.
//         For now... don't ask me why..  but it'll come handy later on.
//
#if !defined(AFX_WINSSHCNTRITEM_H__91854172_A6E5_11D1_8A17_00201870197C__INCLUDED_)
#define AFX_WINSSHCNTRITEM_H__91854172_A6E5_11D1_8A17_00201870197C__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

class CWinsshDoc;
class CWinsshView;

class CWinsshCntrItem : public CRichEditCntrItem
{
	DECLARE_SERIAL(CWinsshCntrItem)

// Constructors
public:
	CWinsshCntrItem(REOBJECT* preo = NULL, CWinsshDoc* 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:
	CWinsshDoc* GetDocument()
		{ return (CWinsshDoc*)COleClientItem::GetDocument(); }
	CWinsshView* GetActiveView()
		{ return (CWinsshView*)COleClientItem::GetActiveView(); }

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CWinsshCntrItem)
	public:
	protected:
	//}}AFX_VIRTUAL

// Implementation
public:
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif
};
#endif // !defined(AFX_WINSSHCNTRITEM_H__91854172_A6E5_11D1_8A17_00201870197C__INCLUDED_)
