#if !defined(AFX_DLGDEPTH_H__A8A98229_071D_4119_8BD8_AE1BB69DE1A1__INCLUDED_)
#define AFX_DLGDEPTH_H__A8A98229_071D_4119_8BD8_AE1BB69DE1A1__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgDepth.h : header file
//

#include "DepthCtrl.h"


/////////////////////////////////////////////////////////////////////////////
// CDlgDepth dialog

class CDlgDepth : public CDialog
{
// Construction
public:
	CDlgDepth(CWnd* pParent = NULL);   // standard constructor

	CDepthCtrl		m_DepthCtrl;
	CMenu			m_DepthMenu;

	int				depth;
	bool			down;
	
	void			AddDepth		(	double		depth);

	void			AddGroupData	(	NBlueFin7kMessages::PBLUEFINRECORDTYPEHEADER	 pRecHdr,
  										NBlueFin7kMessages::PBLUEFINNAVIGATIONMESSAGE    pNavFrame );
	

// Dialog Data
	//{{AFX_DATA(CDlgDepth)
	enum { IDD = IDD_DLG_DEPTH };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDlgDepth)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CDlgDepth)
	virtual void OnOK();
	virtual BOOL OnInitDialog();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnPaint();
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnSettingsBackground();
	afx_msg void OnSettingsDepthaxis();
	afx_msg void OnSettingsHistoryline();
	afx_msg void OnSettingsTextcolor();
	afx_msg void OnSettingsCrosslines();
	afx_msg void OnDestroy();
	afx_msg void OnSettingsVessel();
	afx_msg void OnClose();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	
	CSystemConfig* m_pConfig;
	
	void SaveSettings();
	void LoadSettings();


	COLORREF m_clrWater, m_clrText, m_clrShip, m_clrHistory, m_clrLines, m_clrAxis;

};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DLGDEPTH_H__A8A98229_071D_4119_8BD8_AE1BB69DE1A1__INCLUDED_)
