home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 13
/
mediashare_13.zip
/
mediashare_13
/
ZIPPED
/
PROGRAM
/
WTJ9403.ZIP
/
CONTAIN
/
CONTAIN.ARJ
/
CONTAVW.H
< prev
next >
Wrap
C/C++ Source or Header
|
1994-01-06
|
2KB
|
67 lines
// contavw.h : interface of the CContainView class
//
/////////////////////////////////////////////////////////////////////////////
class CContainCntrItem;
class CContainView : public CView
{
protected: // create from serialization only
CContainView();
DECLARE_DYNCREATE(CContainView)
// Attributes
public:
CContainDoc* GetDocument();
// m_pSelection holds the selection to the current CContainCntrItem.
// 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 CContainCntrItem objects. This selection
// mechanism is provided just to help you get started.
// TODO: replace this selection mechanism with one appropriate to your app.
CContainCntrItem* m_pSelection;
// Operations
public:
// Implementation
public:
virtual ~CContainView();
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);
// OLE Container support
virtual BOOL IsSelected(const CObject* pDocItem) const;
// Generated message map functions
protected:
//{{AFX_MSG(CContainView)
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
afx_msg void OnSetFocus(CWnd* pOldWnd);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnInsertObject();
afx_msg void OnCancelEdit();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in contavw.cpp
inline CContainDoc* CContainView::GetDocument()
{ return (CContainDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////