// mapqueryDlg.h : header file
//

#include "dibsurf.hpp"

#if !defined(AFX_MAPQUERYDLG_H__8526FD5F_2A3F_469E_8D50_8A4727526128__INCLUDED_)
#define AFX_MAPQUERYDLG_H__8526FD5F_2A3F_469E_8D50_8A4727526128__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CMapqueryDlg dialog

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

// Dialog Data
	//{{AFX_DATA(CMapqueryDlg)
	enum { IDD = IDD_MAPQUERY_DIALOG };
	CButton	m_Wheel;
	CButton	m_Track;
	CButton	m_Leg;
	CButton	m_Hover;
	CButton	m_Block;
	int		m_YValue;
	int		m_XValue;
	CString	m_Value;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMapqueryDlg)
	public:
	virtual BOOL DestroyWindow();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	int m_Width,m_Height;					// in meters
	unsigned short **m_Data;					// two dimensional array for width and height.  PASS_FLAG flags at top
	CDIBSurface m_MapSurf;

	int m_AllocWidth,m_AllocHeight;
	void BuildSurface(void);


	// Generated message map functions
	//{{AFX_MSG(CMapqueryDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnQuery();
	afx_msg void OnFileopen();
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnBlock();
	afx_msg void OnHover();
	afx_msg void OnLeg();
	afx_msg void OnTrack();
	afx_msg void OnWheel();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_MAPQUERYDLG_H__8526FD5F_2A3F_469E_8D50_8A4727526128__INCLUDED_)
