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

📄 dlglayermanager.h

📁 Embedded vc++下开发的可编辑地图程序
💻 H
字号:
#if !defined(AFX_DLGLAYERMANAGER_H__F98F9B3C_9F1A_4014_8B76_D7401473078A__INCLUDED_)
#define AFX_DLGLAYERMANAGER_H__F98F9B3C_9F1A_4014_8B76_D7401473078A__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// DlgLayerManager.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CDlgLayerManager dialog

class CDlgLayerManager : public CDialog
{
// Construction
public:
	CDlgLayerManager(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CDlgLayerManager)
	enum { IDD = IDD_LAYER_MANAGER };
	CListCtrl	m_lstLayers;	//图层列表
	BOOL	m_bEditable;		//是否可编辑
	BOOL	m_bSelectable;		//是否可选择
	BOOL	m_bSnapable;		//是否可捕捉
	BOOL	m_bVisible;			//是否可视
	double	m_dMaxScale;		//最大显示比例
	double	m_dMinScale;		//最小显示比例
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA
	CSeMapWnd*		m_pMapWnd;		//输入地图窗口
	
	int				m_nCurRow;		//当前选中的行
	BOOL			m_bLstClicked;	//当显示比例编辑聚焦后判断
	//失去焦点后,是否点击了图层列表
	//主要原因:修改Edit后马上点击List会有问题


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

// Implementation
protected:
	BOOL FillList();					//将图层名添加到列表中
	void SetMoveButtonState(int nRow);	//设置移动按钮的状态

	// Generated message map functions
	//{{AFX_MSG(CDlgLayerManager)
	afx_msg void OnButtonDelete();
	afx_msg void OnCheckSelectable();
	afx_msg void OnCheckSnapable();
	afx_msg void OnCheckVisible();
	afx_msg void OnClickListLayer(NMHDR* pNMHDR, LRESULT* pResult);
	virtual BOOL OnInitDialog();
	afx_msg void OnKillfocusEditMinscale();
	afx_msg void OnKillfocusEditMaxscale();
	afx_msg void OnButtonMoveTop();
	afx_msg void OnButtonMoveUp();
	afx_msg void OnButtonMoveDown();
	afx_msg void OnButtonMoveBottom();
	afx_msg void OnSetfocusEditMinscale();
	afx_msg void OnSetfocusEditMaxscale();
	virtual void OnOK();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_DLGLAYERMANAGER_H__F98F9B3C_9F1A_4014_8B76_D7401473078A__INCLUDED_)

⌨️ 快捷键说明

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