1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#pragma once
 
#include "btnenh.h"
#include "Global_Define.h"
// CViewMapSettings ´ëÈ­ »óÀÚÀÔ´Ï´Ù.
 
class CViewMapSettings : public CDialogEx
{
    DECLARE_DYNAMIC(CViewMapSettings)
 
public:
    CViewMapSettings(CWnd* pParent = NULL);   // Ç¥ÁØ »ý¼ºÀÚÀÔ´Ï´Ù.
    virtual ~CViewMapSettings();
 
// ´ëÈ­ »óÀÚ µ¥ÀÌÅÍÀÔ´Ï´Ù.
    enum { IDD = IDD_DLG_MAP_SETTINGS };
 
protected:
    virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV Áö¿øÀÔ´Ï´Ù.
    virtual BOOL OnInitDialog();
    virtual BOOL PreTranslateMessage(MSG* pMsg);
    void ClickMapSettinsSave();
    void OnClickMapSettinsClose();
    afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
    DECLARE_MESSAGE_MAP()
    DECLARE_EVENTSINK_MAP()
 
public:
    void                LoadMapSettings(_ST_MAPSETTINGS &MapSettings);
    void                SaveMapSettings(_ST_MAPSETTINGS MapSettings);
    _ST_MAPSETTINGS        *GetMapData(){return &m_MapsSettings;}
 
protected:
    void                Init_Grid();
    void                Init_GridHeader(CGridCtrl *pGrid);
    void                Fill_Grid(BOOL bWrite);
 
protected:
    CGridCtrl            m_MapGrid[2];
    _ST_MAPSETTINGS        m_MapsSettings;
};