⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 drawinpdaview.h

📁 在PDA中的画图程序
💻 H
字号:
// DrawInPDAView.h : interface of the CDrawInPDAView class
//
/////////////////////////////////////////////////////////////////////////////
#include "DrawInPDADoc.h"
#include "Shape.h"

#if !defined(AFX_DRAWINPDAVIEW_H__7632F96C_9842_421D_9627_6E3D3A318423__INCLUDED_)
#define AFX_DRAWINPDAVIEW_H__7632F96C_9842_421D_9627_6E3D3A318423__INCLUDED_

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

class CDrawInPDAView : public CView
{
protected: // create from serialization only
	CDrawInPDAView();
	DECLARE_DYNCREATE(CDrawInPDAView)

// Attributes
public:
	CDrawInPDADoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDrawInPDAView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CDrawInPDAView();
	float m_xStart,m_yStart,blc;
    int m_hScreen,m_wScreen;
	void DPtoVP(float x,float y,int *X,int *Y);
	void VPtoDP(int x,int y,float *X,float *Y);
	CShapeList m_SelectionShape;
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
	void OnUpdateDrawCommand(CCmdUI* pCmdUI);
	void OnDrawShape(UINT m_nID);
	//{{AFX_MSG(CDrawInPDAView)
	afx_msg void OnSize(UINT nType, int cx, int cy);
	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
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in DrawInPDAView.cpp
inline CDrawInPDADoc* CDrawInPDAView::GetDocument()
   { return (CDrawInPDADoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_DRAWINPDAVIEW_H__7632F96C_9842_421D_9627_6E3D3A318423__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -