www.pudn.com > CHA03.rar   To Read all the content


[file head]:
// DrawVw.h : interface of the CDrawView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_DRAWVW_H__57AF06D8_3F92_4DB7_BA94_D0616183DBE2__INCLUDED_)
#define AFX_DRAWVW_H__57AF06D8_3F92_4DB7_BA94_D0616183DBE2__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#define HINT_UPDATE_WINDOW 0
#define HINT_UPDATE_DRAWOBJ 1
#define HINT_UPDATE_SELECTION 2
#define HINT_DELETE_SELECTION 3
#define HINT_UPDATE_OLE_ITEMS 4

class CDrawItem;
//class CDrawObj;

class CDrawView : public CScrollView
{
protected: // create from serialization only
CDrawView();
DECLARE_DYNCREATE(CDrawView)

// Attributes
public:
BOOL m_bActive;
COLORREF m_gridColor;
BOOL m_bGrid;
CDrawObjList m_selection;

CDrawDoc* GetDocument();
// m_pSelection holds the selection to the current CDrawItem.
// For many applications, such a member variable isn't adequate to
// represent a selection, su
... ...

[file tail]:
... ...
ateViewGrid(CCmdUI* pCmdUI);
afx_msg void OnViewShowobjects();
afx_msg void OnUpdateViewShowobjects(CCmdUI* pCmdUI);
afx_msg void OnEditClear();
afx_msg void OnEditCopy();
afx_msg void OnEditCut();
afx_msg void OnEditPaste();
afx_msg void OnEditSelectAll();
afx_msg void OnUpdateEditClear(CCmdUI* pCmdUI);
afx_msg void OnUpdateEditCopy(CCmdUI* pCmdUI);
afx_msg void OnUpdateEditCut(CCmdUI* pCmdUI);
afx_msg void OnUpdateEditPaste(CCmdUI* pCmdUI);
afx_msg void OnUpdateEditSelectAll(CCmdUI* pCmdUI);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG // debug version in DrawVw.cpp
inline CDrawDoc* CDrawView::GetDocument()
{ return (CDrawDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DRAWVW_H__57AF06D8_3F92_4DB7_BA94_D0616183DBE2__INCLUDED_)