Alientech 0.01
An extendable game engine
C:/Alientech/AlienPlanets/CntrItem.h
Go to the documentation of this file.
00001 
00002 // CntrItem.h : interface of the CAlienPlanetsCntrItem class
00003 //
00004 
00005 #pragma once
00006 
00007 class CAlienPlanetsDoc;
00008 class CAlienPlanetsView;
00009 
00010 class CAlienPlanetsCntrItem : public COleClientItem
00011 {
00012         DECLARE_SERIAL(CAlienPlanetsCntrItem)
00013 
00014 // Constructors
00015 public:
00016         CAlienPlanetsCntrItem(CAlienPlanetsDoc* pContainer = NULL);
00017                 // Note: pContainer is allowed to be NULL to enable IMPLEMENT_SERIALIZE
00018                 //  IMPLEMENT_SERIALIZE requires the class have a constructor with
00019                 //  zero arguments.  Normally, OLE items are constructed with a
00020                 //  non-NULL document pointer
00021 
00022 // Attributes
00023 public:
00024         CAlienPlanetsDoc* GetDocument()
00025                 { return reinterpret_cast<CAlienPlanetsDoc*>(COleClientItem::GetDocument()); }
00026         CAlienPlanetsView* GetActiveView()
00027                 { return reinterpret_cast<CAlienPlanetsView*>(COleClientItem::GetActiveView()); }
00028 
00029 public:
00030         virtual void OnChange(OLE_NOTIFICATION wNotification, DWORD dwParam);
00031         virtual void OnActivate();
00032 
00033 protected:
00034         virtual void OnGetItemPosition(CRect& rPosition);
00035         virtual void OnDeactivateUI(BOOL bUndoable);
00036         virtual BOOL OnChangeItemPosition(const CRect& rectPos);
00037         virtual BOOL OnShowControlBars(CFrameWnd* pFrameWnd, BOOL bShow);
00038 
00039 // Implementation
00040 public:
00041         ~CAlienPlanetsCntrItem();
00042 #ifdef _DEBUG
00043         virtual void AssertValid() const;
00044         virtual void Dump(CDumpContext& dc) const;
00045 #endif
00046         virtual void Serialize(CArchive& ar);
00047 };
00048