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

📄 dialogtab1.h

📁 MFC 空间数据的表达与操作
💻 H
字号:
#if !defined(AFX_DIALOGTAB1_H__9F699E77_5052_4F11_9F27_411361658F64__INCLUDED_)
#define AFX_DIALOGTAB1_H__9F699E77_5052_4F11_9F27_411361658F64__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DialogTab1.h : header file
//
#include "DialogTab2.h"
/////////////////////////////////////////////////////////////////////////////
// CDialogTab1 dialog

class CDialogTab1 : public CDialog
{
// Construction
public:
	void ScreenToMap(CPoint point,double *x,double *y);
	void GetCurrentCenter(double x,double y,double zooom);
	void InitDataBase(CString tablename);
	void GetDefaultData(double x1, double y1, double x2, double y2,CString table,double zooom);
	CDialogTab1(CWnd* pParent = NULL);   // standard constructor

	double mapcenterx,mapcentery;
	double m_zooom_eagle;
	CPoint MapToScreen(double centerx,double centery,double pointx,double pointy,double zooom);
	void DrawLayer(double zoom);
	CDialogTab2 *Layers;

	double viewcenterx,viewcentery,m_zooom_eagletemp,m_zooom_view;

	CString TreeCurrent,TreeParent;//当前和父级项文本内容
	HTREEITEM hTreeCurrent,hTreeParent;//当前和父级项句柄
	_RecordsetPtr m_pRecordset;
	_ConnectionPtr m_pConnection;
	CString tablename;

	CRect rect;
	CDC*     m_pMemDC;				//与pDC兼容的内存设备描述表
	CBitmap* m_pMemBitmap;			//选入内存设备的位图指针
// Dialog Data
	//{{AFX_DATA(CDialogTab1)
	enum { IDD = IDD_DIALOGTAB1 };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDialogTab1)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CDialogTab1)
	afx_msg void OnPaint();
	virtual BOOL OnInitDialog();
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnClose();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_DIALOGTAB1_H__9F699E77_5052_4F11_9F27_411361658F64__INCLUDED_)

⌨️ 快捷键说明

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