home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Troubleshooting Netware Systems
/
CSTRIAL0196.BIN
/
attach
/
msj
/
v10n04
/
olecont.exe
/
CONTVIEW.H
< prev
next >
Wrap
C/C++ Source or Header
|
1995-04-01
|
2KB
|
76 lines
// contview.h : interface of the CContainerView class
//
/////////////////////////////////////////////////////////////////////////////
class CContainerItem;
class CContainerView : public CView
{
protected: // create from serialization only
CContainerView();
DECLARE_DYNCREATE(CContainerView)
// Attributes
public:
CContainerDoc* GetDocument();
// m_pSelection holds the selection to the current CContainerItem.
// For many applications, such a member variable isn't adequate to
// represent a selection, such as a multiple selection or a selection
// of objects that are not CContainerItem objects. This selection
// mechanism is provided just to help you get started.
// TODO: replace this selection mechanism with one appropriate to your app.
CContainerItem* m_pSelection;
// Operations
public:
// Implementation
public:
virtual ~CContainerView();
virtual void OnDraw(CDC* pDC); // overridden to draw this view
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
virtual void OnInitialUpdate(); // called first time after construct
// Printing support
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
// Selection support
virtual BOOL IsSelected(const CObject* pDocItem) const;
virtual void SetSelection(CContainerItem* pNewSel);
CContainerItem* HitTestItems(CPoint point);
// Drawing Support
virtual void OnPrepareDC(CDC* pDC, CPrintInfo* pInfo = NULL);
virtual void SetupTracker(CRectTracker* pTracker, CContainerItem* pItem);
virtual void InvalidateItem(CContainerItem* pItem);
// Generated message map functions
protected:
//{{AFX_MSG(CContainerView)
afx_msg void OnSetFocus(CWnd* pOldWnd);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void InsertObject();
afx_msg void OnCancelEdit();
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
afx_msg void OnDestroy();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in testview.cpp
inline CContainerDoc* CContainerView::GetDocument()
{ return (CContainerDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////