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

📄 chinaviewview.h

📁 读取Blob字段(大二进制数据)的一个程序
💻 H
字号:
// ChinaViewView.h : interface of the CChinaViewView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_CHINAVIEWVIEW_H__2CBB8BD6_7A9A_4F8D_8AFA_EC00B41EEC81__INCLUDED_)
#define AFX_CHINAVIEWVIEW_H__2CBB8BD6_7A9A_4F8D_8AFA_EC00B41EEC81__INCLUDED_

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

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

// Attributes
public:
	CChinaViewDoc* GetDocument();
	void CChinaViewView::DrawMapFromZB1(CDC *pDC);
	void CChinaViewView::FillPolygon(CDC *pDC, LPPOINT point, int nCount, int index, COLORREF color1, int penStyle, int width, COLORREF color2);
	void CChinaViewView::DrawLine(CDC *pDC, LPPOINT point, int nCount, int penStyle, int width, COLORREF color);
	void CChinaViewView::DrawCircle(CDC *pDC, LPPOINT point, int nCount,int radius, COLORREF color);
	void CChinaViewView::DrawStar(CDC *pDC, LPPOINT point, int nCount, COLORREF color);
	void CChinaViewView::DrawMapFromZJ1(CDC *pDC);
	void CChinaViewView::ClearMemScreen(CDC *pDC);


	HCURSOR h_Pan,h_ZoomIn,h_ZoomOut,h_Arrow;     //光标句柄

//Unknown Variables
//	CChinaViewDoc* GetDocument();
	CPoint *point;                        
	double xmax,xmin,ymax,ymin;         //存放当前实际坐标的极值
	int flag;                           //判断当前操作的标记
	CPoint m_orign,m_move;              //存放左键点下时的坐标
	CDC *dc;
	CBitmap *bitmap;
	int Screenwidth,Screenheight;       //屏幕宽度与高度
	int MenuIndex;

 	BOOL buttomdown;                    //表示鼠标左键是否按下,TRUE表示按下了

	double times;
	
	BOOL footnote;//判断显示注记与否


// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CChinaViewView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	virtual void OnInitialUpdate();
	virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
	protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	void ReadDataProvince();
	void ReadDataPoint();
	virtual ~CChinaViewView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:
	UINT m_curTool;
// Generated message map functions
protected:
	//{{AFX_MSG(CChinaViewView)
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnMapZoomin();
	afx_msg void OnMapZoomout();
	afx_msg void OnMapPan();
	afx_msg void OnMapFullview();
	afx_msg void OnUpdateMapZoomin(CCmdUI* pCmdUI);
	afx_msg void OnUpdateMapZoomout(CCmdUI* pCmdUI);
	afx_msg void OnUpdateMapPan(CCmdUI* pCmdUI);
	afx_msg void OnViewFootnote();
	afx_msg void OnUpdateViewFootnote(CCmdUI* pCmdUI);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	//}}AFX_MSG
	
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in ChinaViewView.cpp
inline CChinaViewDoc* CChinaViewView::GetDocument()
   { return (CChinaViewDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_CHINAVIEWVIEW_H__2CBB8BD6_7A9A_4F8D_8AFA_EC00B41EEC81__INCLUDED_)

⌨️ 快捷键说明

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