www.pudn.com > GPSComEVC3.0.rar > MainFrm.h


// MainFrm.h : interface of the CMainFrame class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_MAINFRM_H__00ECD082_5A5E_4578_8174_9115881F7A21__INCLUDED_) 
#define AFX_MAINFRM_H__00ECD082_5A5E_4578_8174_9115881F7A21__INCLUDED_ 
 
#if _MSC_VER >= 1000 
#pragma once 
#endif // _MSC_VER >= 1000 
 
// Array for the toolbar buttons 
 
#if (_WIN32_WCE < 201) 
static TBBUTTON g_arCBButtons[] = { 
	{ 0,	ID_FILE_NEW,	TBSTATE_ENABLED, TBSTYLE_BUTTON,	0, 0, 0,  0}, 
	{ 1,    ID_FILE_OPEN,	TBSTATE_ENABLED, TBSTYLE_BUTTON,	0, 0, 0,  1}, 
	{ 2,	ID_FILE_SAVE,	TBSTATE_ENABLED, TBSTYLE_BUTTON,	0, 0, 0,  2}, 
	{ 0,	0,				TBSTATE_ENABLED, TBSTYLE_SEP,		0, 0, 0, -1}, 
	{ 3,    ID_EDIT_CUT,	TBSTATE_ENABLED, TBSTYLE_BUTTON,	0, 0, 0,  3}, 
	{ 4,	ID_EDIT_COPY,	TBSTATE_ENABLED, TBSTYLE_BUTTON,	0, 0, 0,  4}, 
	{ 5,	ID_EDIT_PASTE,	TBSTATE_ENABLED, TBSTYLE_BUTTON,	0, 0, 0,  5} 
}; 
#endif 
 
#if defined(_WIN32_WCE_PSPC) && (_WIN32_WCE >= 212) 
#define NUM_TOOL_TIPS 8 
#endif 
#include "Way.h" 
const double  PI=3.1415926535897932384626433832795; 
const double  P1=180.0/PI*3600; 
const double  P2=180.0/PI; 
const double  E=1e-20; 
class CMainFrame : public CFrameWnd 
{ 
protected: // create from serialization only 
	CMainFrame(); 
	DECLARE_DYNCREATE(CMainFrame) 
 
// Attributes 
public: 
	CComboBox* m_Cmb; 
// Operations 
public: 
	CString m_strReceived; 
	int m_index; 
	CStatusBar  m_wndStatusBar; 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CMainFrame) 
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	void OnCom(void); 
	void ShowDisplayView(int b=1); 
	virtual ~CMainFrame(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected:  // control bar embedded members 
	CCeCommandBar	m_wndCommandBar; 
	UINT m_nCurrentExample; 
 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CMainFrame) 
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); 
	afx_msg LONG OnCommunication(WPARAM ch, LPARAM port); 
	afx_msg void OnMenuexit(); 
	afx_msg void OnCancelMode(); 
	afx_msg void OnExit(); 
	//}}AFX_MSG 
	LPTSTR MakeString(UINT stringID); 
	LPTSTR m_ToolTipsTable[NUM_TOOL_TIPS];  
 
	DECLARE_MESSAGE_MAP() 
}; 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft eMbedded Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_MAINFRM_H__00ECD082_5A5E_4578_8174_9115881F7A21__INCLUDED_)