You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.1 KiB
C++
55 lines
1.1 KiB
C++
#ifndef DLG_LAYER_H
|
|
#define DLG_LAYER_H
|
|
|
|
|
|
|
|
#include "Globe.h"
|
|
#include "resource.h"
|
|
#include <afxtempl.h>
|
|
|
|
|
|
class CMapLayerManage : public CDialog
|
|
{
|
|
// Construction
|
|
public:
|
|
CMapLayerManage(CWnd* pParent = NULL); // standard constructor
|
|
|
|
// Dialog Data
|
|
//{{AFX_DATA(CMapLayerManage)
|
|
enum { IDD = IDD_DIALOG_LAYER_MANAGE};
|
|
|
|
CTreeCtrl m_TreeCtrl;
|
|
//}}AFX_DATA
|
|
|
|
CImageList m_ImageList;
|
|
|
|
HTREEITEM hRoot;
|
|
CArray<HTREEITEM,HTREEITEM> hLayer;
|
|
|
|
void AddLayerInfo(CString str,int type);
|
|
void RemoveAt(int index);
|
|
void RemoveAll();
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CMapLayerManage)
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
protected:
|
|
|
|
// Generated message map functions
|
|
//{{AFX_MSG(CMapLayerManage)
|
|
virtual BOOL OnInitDialog();
|
|
afx_msg void OnClickTree(NMHDR* pNMHDR, LRESULT* pResult);
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
|
|
public:
|
|
afx_msg void OnTvnSelchangedTree(NMHDR *pNMHDR, LRESULT *pResult);
|
|
};
|
|
|
|
|
|
#endif |