#if !defined(AFX_DLGSBPDISPLAY_H__B803E9C0_35C2_47C3_AC30_F04495BBE7F3__INCLUDED_)
#define AFX_DLGSBPDISPLAY_H__B803E9C0_35C2_47C3_AC30_F04495BBE7F3__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgSBPDisplay.h : header file
//

#include "WaterfallDisplay.h"
#include "DlgWFProperties.h"


#define MAX_SBP_PING_BYTES 30000

/////////////////////////////////////////////////////////////////////////////
// CDlgSBPDisplay dialog

class CDlgSBPDisplay : public CDialog
{
// Construction
public:
	CDlgSBPDisplay(CWnd* pParent = NULL);   // standard constructor

	BOOL				AddNewProfile				(	BYTE				*data, 
														int					size);

	void				SetType						(	DISPLAY_TYPE		type );

	void				Refresh						(	void );
	void				Cleanup						(	void );
	
	CWaterfallDisplay	m_SBPDisplay;
	CMenu				m_menuSBP;
	CDlgWFProperties	m_dlgProperties;

	BOOL				m_bSizing;
	BOOL				m_bProperties;
	CRect				m_rWndSized;
	UINT				m_uiBrightness;
	UINT				m_uiContrast;
	

// Dialog Data
	//{{AFX_DATA(CDlgSBPDisplay)
	enum { IDD = IDD_DLG_SBP };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDlgSBPDisplay)
	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(CDlgSBPDisplay)
	virtual BOOL OnInitDialog();
	afx_msg void OnDestroy();
	afx_msg void OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI);
	afx_msg void OnPaint();
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnSbpPaletteGreyscale();
	afx_msg void OnSbpPaletteMoss();
	afx_msg void OnSbpPaletteRust();
	afx_msg void OnSbpImageBrightness();
	afx_msg void OnSbpPaletteInversegrey();
	afx_msg void OnSbpPaletteSoil();
	afx_msg void OnPaletteRed();
	afx_msg void OnPaletteGreen();
	afx_msg void OnPaletteBlue();
	afx_msg void OnClose();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

private:

	void				SaveSettings				(	void );
	void				LoadSettings				(	void );

	void				SyncPaletteMenu				(	void );

	CSystemConfig		*pConfig;

	CRect				m_WindowRect;
	EPaletteType		m_Palette;
	DISPLAY_TYPE		m_InternalType;
	
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DLGSBPDISPLAY_H__B803E9C0_35C2_47C3_AC30_F04495BBE7F3__INCLUDED_)
