www.pudn.com > Geotest.rar > LayerControl.h
#if !defined(AFX_LAYERCONTROL_H__C714B19B_A1E6_4B9D_BDA6_59B85C0FABBD__INCLUDED_)
#define AFX_LAYERCONTROL_H__C714B19B_A1E6_4B9D_BDA6_59B85C0FABBD__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// LayerControl.h : header file
//
#include "mapx.h"
/////////////////////////////////////////////////////////////////////////////
// CLayerControl dialog
class CLayerControl : public CDialog
{
// Construction
public:
CLayerControl(CWnd* pParent = NULL); // standard constructor
CLayerControl(CMapX* pMapX,CWnd* pParent = NULL);
// Dialog Data
//{{AFX_DATA(CLayerControl)
enum { IDD = IDD_LAYERCONTROL };
CButton m_ctrlRemove;
CButton m_ctrlAutoLabels;
CButton m_ctrlEditable;
CButton m_ctrlSelectable;
CButton m_ctrlVisible;
CButton m_ctrlButtonDown;
CButton m_ctrlButtonUp;
CListBox m_ctrlLayerControl;
CString m_strLayerName;
BOOL m_visible;
BOOL m_selectable;
BOOL m_editable;
BOOL m_autoLabels;
//}}AFX_DATA
//operator
public :
CMapXLayer GetTargetLayer();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CLayerControl)
public:
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
CMapX* m_pMapX;
CString LayerName;
// Generated message map functions
//{{AFX_MSG(CLayerControl)
virtual BOOL OnInitDialog();
afx_msg void OnButtonUp();
afx_msg void OnSelchangeListLayer();
afx_msg void OnCheckVisible();
afx_msg void OnCheckSelectable();
afx_msg void OnCheckAutoLabels();
afx_msg void OnCheckEditable();
afx_msg void OnButtonDown();
afx_msg void OnButtonAdd();
afx_msg void OnButtonRemove();
afx_msg void OnButtonDisplay();
afx_msg void OnButtonLabelStyle();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_LAYERCONTROL_H__C714B19B_A1E6_4B9D_BDA6_59B85C0FABBD__INCLUDED_)