// Copyright (C) 1998-1999 Apollocom
// All rights reserved.
//
// Apollocom licenses this source code for use within your application in
// object form. This source code is not to be distributed in any way without
// prior written permission from Apollocom.
//
// Visual Source Safe: $Revision: 2 $
///////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_COMPASS_H__83FDC8F2_F057_4F01_9E19_C9CD06E8910E__INCLUDED_)
#define AFX_COMPASS_H__83FDC8F2_F057_4F01_9E19_C9CD06E8910E__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Compass.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CCompass window

enum {
	COMPASS_TIC_TOP = 0,
	COMPASS_TIC_BOTTOM,
	COMPASS_TIC_BOTH,
};

class CCompass : public CStatic
{
// Construction
public:
	CCompass();

// Attributes
public:
	float m_fHeading;
	WORD m_wTicAlign;		// Tic allignment (COMPASS_TIC_TOP or COMPASS_TIC_BOTTOM or COMPASS_TIC_BOTH)

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CCompass)
	//}}AFX_VIRTUAL

// Implementation
public:
	void SetTicAlign(WORD wAlign);
	UINT SetPos(int nPos);
	virtual ~CCompass();

	// Generated message map functions
protected:
	//{{AFX_MSG(CCompass)
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnPaint();
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
private:
	void DrawCompass(CRect *pRect, CDC *pDCa = NULL);
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_COMPASS_H__83FDC8F2_F057_4F01_9E19_C9CD06E8910E__INCLUDED_)
