Alientech 0.01
An extendable game engine
C:/Alientech/AlienPlanets/AlienPlanetsView.h
Go to the documentation of this file.
00001 
00002 // AlienPlanetsView.h : interface of the CAlienPlanetsView class
00003 //
00004 
00005 #pragma once
00006 
00007 class CAlienPlanetsCntrItem;
00008 
00009 class CAlienPlanetsView : public CView
00010 {
00011 protected: // create from serialization only
00012         CAlienPlanetsView();
00013         DECLARE_DYNCREATE(CAlienPlanetsView)
00014 
00015 // Attributes
00016 public:
00017         CAlienPlanetsDoc* GetDocument() const;
00018         // m_pSelection holds the selection to the current CAlienPlanetsCntrItem.
00019         // For many applications, such a member variable isn't adequate to
00020         //  represent a selection, such as a multiple selection or a selection
00021         //  of objects that are not CAlienPlanetsCntrItem objects.  This selection
00022         //  mechanism is provided just to help you get started
00023 
00024         // TODO: replace this selection mechanism with one appropriate to your app
00025         CAlienPlanetsCntrItem* m_pSelection;
00026 
00027 // Operations
00028 public:
00029 
00030 // Overrides
00031 public:
00032         virtual void OnDraw(CDC* pDC);  // overridden to draw this view
00033         virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
00034 protected:
00035         virtual void OnInitialUpdate(); // called first time after construct
00036         virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
00037         virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
00038         virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
00039         virtual BOOL IsSelected(const CObject* pDocItem) const;// Container support
00040 
00041 // Implementation
00042 public:
00043         virtual ~CAlienPlanetsView();
00044 #ifdef _DEBUG
00045         virtual void AssertValid() const;
00046         virtual void Dump(CDumpContext& dc) const;
00047 #endif
00048 
00049 protected:
00050 
00051 // Generated message map functions
00052 protected:
00053         afx_msg void OnDestroy();
00054         afx_msg void OnSetFocus(CWnd* pOldWnd);
00055         afx_msg void OnSize(UINT nType, int cx, int cy);
00056         afx_msg void OnInsertObject();
00057         afx_msg void OnCancelEditCntr();
00058         afx_msg void OnFilePrint();
00059         afx_msg void OnFilePrintPreview();
00060         afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
00061         afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
00062         DECLARE_MESSAGE_MAP()
00063 };
00064 
00065 #ifndef _DEBUG  // debug version in AlienPlanetsView.cpp
00066 inline CAlienPlanetsDoc* CAlienPlanetsView::GetDocument() const
00067    { return reinterpret_cast<CAlienPlanetsDoc*>(m_pDocument); }
00068 #endif
00069