67 lines
1.9 KiB
C++
Executable File
67 lines
1.9 KiB
C++
Executable File
// GPSMain.h : main header file for the GPSMAIN application
|
|
//
|
|
|
|
#if !defined(AFX_GPSMAIN_H__C1658C48_5BB7_4196_8E64_2CCB5C53846B__INCLUDED_)
|
|
#define AFX_GPSMAIN_H__C1658C48_5BB7_4196_8E64_2CCB5C53846B__INCLUDED_
|
|
|
|
#if _MSC_VER >= 1000
|
|
#pragma once
|
|
#endif // _MSC_VER >= 1000
|
|
|
|
#ifndef __AFXWIN_H__
|
|
#error include 'stdafx.h' before including this file for PCH
|
|
#endif
|
|
|
|
#include "resource.h" // main symbols
|
|
#include "..\Comm\COMM.h"
|
|
|
|
bool RunApplication(CString sFileName, CString sParam = _T(""));
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CGPSMainApp:
|
|
// See GPSMain.cpp for the implementation of this class
|
|
//
|
|
|
|
class CGPSMainApp : public CWinApp
|
|
{
|
|
private:
|
|
int m_Language; // 当前语言
|
|
bool m_IsBeep; // 按钮发音
|
|
HINSTANCE m_ResourceLib; // 多语言句柄
|
|
public:
|
|
bool SetRegLanguage(int iLanguage);
|
|
bool SetRegBeep(bool bBeep);
|
|
int GetRegLanguage(void);
|
|
bool GetRegBeep();
|
|
CGPSMainApp();
|
|
HINSTANCE LoadLanguageRes(int iLanguage);
|
|
HINSTANCE GetResourceLib(void);
|
|
void PlayMsgSound(int iSound = -1);
|
|
bool GetBeep(void);
|
|
void SetBeep(bool bBeep);
|
|
void SetLanguage(int iLanguage);
|
|
int GetLanguage(void);
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CGPSMainApp)
|
|
public:
|
|
virtual BOOL InitInstance();
|
|
virtual int ExitInstance();
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
|
|
//{{AFX_MSG(CGPSMainApp)
|
|
// NOTE - the ClassWizard will add and remove member functions here.
|
|
// DO NOT EDIT what you see in these blocks of generated code !
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
};
|
|
|
|
extern CGPSMainApp theApp;
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft eMbedded Visual C++ will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_GPSMAIN_H__C1658C48_5BB7_4196_8E64_2CCB5C53846B__INCLUDED_)
|