-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial commit with date and time out of DISK_055 backup
- Loading branch information
Showing
1 changed file
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
// cntritem.h : interface of the CDrawItem class | ||
// | ||
// This is a part of the Microsoft Foundation Classes C++ library. | ||
// Copyright (C) 1992-1993 Microsoft Corporation | ||
// All rights reserved. | ||
// | ||
// This source code is only intended as a supplement to the | ||
// Microsoft Foundation Classes Reference and Microsoft | ||
// QuickHelp and/or WinHelp documentation provided with the library. | ||
// See these sources for detailed information regarding the | ||
// Microsoft Foundation Classes product. | ||
|
||
|
||
class CDrawDoc; | ||
class CDrawView; | ||
|
||
class AFX_CLASS_EXPORT CDrawItem : public COleClientItem | ||
{ | ||
DECLARE_SERIAL(CDrawItem) | ||
|
||
// Constructors | ||
public: | ||
CDrawItem(CDrawDoc* pContainer = NULL, CDrawOleObj* pDrawObj = 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: | ||
CDrawDoc* GetDocument() | ||
{ return (CDrawDoc*)COleClientItem::GetDocument(); } | ||
CBaseView* GetActiveView() | ||
{ return (CBaseView*)COleClientItem::GetActiveView(); } | ||
|
||
CDrawOleObj* m_pDrawObj; // back pointer to OLE draw object | ||
|
||
// Operations | ||
BOOL UpdateExtent(); | ||
|
||
// Implementation | ||
public: | ||
~CDrawItem(); | ||
#ifdef _DEBUG | ||
virtual void AssertValid() const; | ||
virtual void Dump(CDumpContext& dc) const; | ||
#endif | ||
virtual void Serialize(CArchive& ar); | ||
virtual void OnGetItemPosition(CRect& rPosition); | ||
|
||
protected: | ||
virtual void OnChange(OLE_NOTIFICATION wNotification, DWORD dwParam); | ||
virtual BOOL OnChangeItemPosition(const CRect& rectPos); | ||
}; | ||
|
||
///////////////////////////////////////////////////////////////////////////// |