h

来源:互联网 发布:代账软件 编辑:程序博客网 时间:2024/04/26 13:43

// MapEditDlg.h : header file
//

#if !defined(AFX_MAPEDITDLG_H__2E74A32F_6DAC_44AB_B18A_7820C4880B24__INCLUDED_)
#define AFX_MAPEDITDLG_H__2E74A32F_6DAC_44AB_B18A_7820C4880B24__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CMapEditDlg dialog
typedef enum
{
 e_move1 = 0,
 e_move2 = 1,
 e_move3 = 2,


 e_stout = 3, // ÎÞ·¨Õ¨µô
 e_moveEW = 4,
 e_moveNS =5,
 e_moveNSWE = 6,
 e_nullMove = 7,

} MOVE_e;
typedef struct _OBJECT{
 int Surface; 
 MOVE_e mState;
}MAPOBJ;
class CMapEditDlg : public CDialog
{
// Construction
public:
 CMapEditDlg(CWnd* pParent = NULL); // standard constructor

// Dialog Data
 //{{AFX_DATA(CMapEditDlg)
 enum { IDD = IDD_MAPEDIT_DIALOG };
 CStatic m_csAttr;
 CStatic m_csOutMsg;
 //}}AFX_DATA

 // ClassWizard generated virtual function overrides
 //{{AFX_VIRTUAL(CMapEditDlg)
 protected:
 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
 //}}AFX_VIRTUAL
private:
  void DrawLine();
  void DrawFloorWindow();
  void DrawMapFloor();
  int GetFilesNum(CString pstr);
  HBITMAP LoadPic(CString csStr);
  void InitMapObject();
  void DrawMapOBject();
  void DrawOBject();
  void InitObject();
private:
 int m_nFloorTotalNum;
 int m_nObjTotalNum;
    int m_nObjNum;
 bool m_bNewFlag;
 int m_nFloorNum;
 int m_nRight;
 bool m_bSelect;
 MAPOBJ m_stMapObj[11][13];
 MAPOBJ m_stObj[7][5];
// Implementation
protected:
 HICON m_hIcon;
 // Generated message map functions
 //{{AFX_MSG(CMapEditDlg)
 virtual BOOL OnInitDialog();
 afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
 afx_msg void OnPaint();
 afx_msg HCURSOR OnQueryDragIcon();
 afx_msg void OnButtonNew();
 afx_msg void OnButtonEdit();
 afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
 afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
 afx_msg void OnMouseMove(UINT nFlags, CPoint point);
 afx_msg void OnButtonHelp();
 afx_msg void OnTimer(UINT nIDEvent);
 //}}AFX_MSG
 DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_MAPEDITDLG_H__2E74A32F_6DAC_44AB_B18A_7820C4880B24__INCLUDED_)
 

原创粉丝点击