Добавил:
Studfiles2
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз:
Предмет:
Файл:Лабораторная работа 33 / part32 / part32View
.h// part32View.h : interface of the CPart32View class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_PART32VIEW_H__BD2EBE9D_FD7A_4D12_A0C2_57102882FFD1__INCLUDED_)
#define AFX_PART32VIEW_H__BD2EBE9D_FD7A_4D12_A0C2_57102882FFD1__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CPart32CntrItem;
class CPart32View : public CScrollView
{
protected: // create from serialization only
CPart32View();
DECLARE_DYNCREATE(CPart32View)
// Attributes
public:
CPart32Doc* GetDocument();
// m_pSelection holds the selection to the current CPart32CntrItem.
// 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 CPart32CntrItem objects. This selection
// mechanism is provided just to help you get started.
// TODO: replace this selection mechanism with one appropriate to your app.
CPart32CntrItem* m_pSelection;
// Operations
public:
protected:
CPoint m_FirstPoint; // First point recorded for an element
CPoint m_SecondPoint; // Second point recorded for an element
CPoint m_MoveLastPoint;
CString StringData; //введенная строка
Shape* m_pTempElement; // Pointer to temporary element
Shape* m_pSelected;
bool CaretCreated; //флаг создания каретки
bool doMove; //флаг передвижения
int m_Scale;
int SetNom;
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CPart32View)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual void OnInitialUpdate(); // called first time after construct
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual BOOL IsSelected(const CObject* pDocItem) const;// Container support
virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
//}}AFX_VIRTUAL
// Implementation
public:
CPart32CntrItem* OleClickTest(CPoint point);
virtual ~CPart32View();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
Shape* CreateElement();
Shape* SelectElement(CPoint aPoint);
void ShowCursor(CDC* pDC);
void ResetScrollSizes();
// Generated message map functions
protected:
//{{AFX_MSG(CPart32View)
afx_msg void OnDestroy();
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 void OnCancelEditSrvr();
afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
afx_msg void OnFigureDelete();
afx_msg void OnConteinerSet1view();
afx_msg void OnSetsSet1();
afx_msg void OnUpdateSetsSet1(CCmdUI* pCmdUI);
afx_msg void OnSetsSet2();
afx_msg void OnUpdateSetsSet2(CCmdUI* pCmdUI);
afx_msg void OnConteinerSet2view();
afx_msg void OnSetsUnion();
afx_msg void OnSetsCross();
afx_msg void OnSetsSubtraction();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in part32View.cpp
inline CPart32Doc* CPart32View::GetDocument()
{ return (CPart32Doc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_PART32VIEW_H__BD2EBE9D_FD7A_4D12_A0C2_57102882FFD1__INCLUDED_)
Соседние файлы в папке part32