home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Building OCXs
/
Building_OCXs_Que_1995.iso
/
code
/
ch07
/
contview.h
< prev
next >
Wrap
C/C++ Source or Header
|
1995-01-15
|
2KB
|
67 lines
// contview.h : interface of the CContView class
//
/////////////////////////////////////////////////////////////////////////////
class CContCntrItem;
class CContView : public CView
{
protected: // create from serialization only
CContView();
DECLARE_DYNCREATE(CContView)
// Attributes
public:
CContDoc* GetDocument();
// m_pSelection holds the selection to the current CContCntrItem.
// 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 CContCntrItem objects. This selection
// mechanism is provided just to help you get started.
// TODO: replace this selection mechanism with one appropriate to your app.
CContCntrItem* m_pSelection;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CContView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
protected:
virtual void OnInitialUpdate(); // called first time after construct
virtual BOOL IsSelected(const CObject* pDocItem) const;// Container support
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CContView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CContView)
// 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 OnCancelEditCntr();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in contview.cpp
inline CContDoc* CContView::GetDocument()
{ return (CContDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////