- // DIBView.h : interface of the CDIBView class
- //
- /////////////////////////////////////////////////////////////////////////////
- #if !defined(AFX_DIBVIEW_H__4143BF9B_D2B1_483E_A464_72D7957C0D0B__INCLUDED_)
- #define AFX_DIBVIEW_H__4143BF9B_D2B1_483E_A464_72D7957C0D0B__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- class CDIBDoc;
- //#include "Pipe.h"
- #include "Piccontrol.h"
- class CDIBView : public CView
- {
- //Attributes
- protected:
- POINT m_ptMouseDown;
- POINT m_ptTracing;
- POINT m_ptFirst;
- PICCONTROL m_Pipe[10];
- int m_iMaxBacks;
- double m_dMeasure;
- PICCONTROL Pop(void);
- void SetStatusText();
- public:
- CPoint m_ptDIBCenter;
- double m_dZoom;
- DWORD m_uIDMapButton;
- int m_iBacks;
- void Push();
- protected: // create from serialization only
- CDIBView();
- DECLARE_DYNCREATE(CDIBView)
- // Attributes
- public:
- CDIBDoc* GetDocument();
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CDIBView)
- public:
- virtual void OnDraw(CDC* pDC); // overridden to draw this view
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- virtual void OnInitialUpdate();
- protected:
- virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
- virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
- virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- virtual ~CDIBView();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- protected:
- // Generated message map functions
- protected:
- afx_msg void OnContextMenu(CWnd*, CPoint point);
- //{{AFX_MSG(CDIBView)
- afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
- afx_msg void OnMouseMove(UINT nFlags, CPoint point);
- afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
- afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- afx_msg void OnMapButton(UINT uID);
- afx_msg void OnUpdateMapButtonState(CCmdUI* pCmdUI);
- afx_msg void OnDirButtons(UINT nID);
- afx_msg void OnUpdateDirButtons(CCmdUI *pCmdUI);
- };
- #ifndef _DEBUG // debug version in DIBView.cpp
- inline CDIBDoc* CDIBView::GetDocument()
- { return (CDIBDoc*)m_pDocument; }
- #endif
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_DIBVIEW_H__4143BF9B_D2B1_483E_A464_72D7957C0D0B__INCLUDED_)