#pragma once
#include "resource.h"

// CTargetDlg 对话框

class CTargetDlg : public CDialogEx
{
	DECLARE_DYNAMIC(CTargetDlg)

public:
	CTargetDlg(CWnd* pParent = NULL);   // 标准构造函数
	virtual ~CTargetDlg();

	void SetTargetCount(int count);
	void SetExistFlag(int id,bool b);

	void GetTargetLLA(int &id,double &lon,double &lat,double &alt);

// 对话框数据
	enum { IDD = IDD_DIALOG_TARGET };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持

	DECLARE_MESSAGE_MAP()
private:
	int m_targetID;
	double m_targetLon;
	double m_targetLat;
	double m_targetAlt;

	int m_targetCount;

	bool m_bExistFlags[255];
public:
	virtual BOOL OnInitDialog();
	afx_msg void OnBnClickedButtonAddTarget();
	afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
	afx_msg void OnBnClickedButtonSelectTarget();

	void ShowPointPosition(double ptLon, double ptLat);
};