⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 demographicsview.h

📁 GPS and Web Service using C++ ATLWTL 源代码
💻 H
字号:
// DemographicsView.h : interface of the CDemographicsView class
//
/////////////////////////////////////////////////////////////////////////////

#pragma once
#include "IGPSSink.h"

class CDemographicsView : 
	public CWindowImpl<CDemographicsView>,
	public IGPSSink
{
	GPS_DEVICE m_gpsDevice;
	GPS_POSITION m_gpsPosition;
	DemographixQuery::SummaryInformation m_info;
	CRITICAL_SECTION m_cs;
	CBitmap m_hBackground;
	
	CFontHandle m_DefaultFont;
	CFont m_DefaultFontBold;
	CFont m_SmallFont;
	CFont m_SmallFontBold;

	double m_oldLat;
	double m_oldLong;
public:
	DECLARE_WND_CLASS(NULL)

	CDemographicsView();
	virtual ~CDemographicsView();

	BOOL PreTranslateMessage(MSG* pMsg);

	BEGIN_MSG_MAP(CDemographicsView)
		MESSAGE_HANDLER(WM_PAINT, OnPaint)
		MESSAGE_HANDLER(WM_ERASEBKGND, OnEraseBackground)
	END_MSG_MAP()

	// Handler prototypes (uncomment arguments if needed):
	//	LRESULT MessageHandler(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
	//	LRESULT CommandHandler(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
	//	LRESULT NotifyHandler(int /*idCtrl*/, LPNMHDR /*pnmh*/, BOOL& /*bHandled*/)

	LRESULT OnPaint(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
	LRESULT OnEraseBackground(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);

	HRESULT SetGPSPosition(GPS_POSITION gps_Position);
	HRESULT SetGPSDeviceInfo(GPS_DEVICE gps_Device);
	INT TextOut(INT x, INT y, LPCTSTR szText, CDC & dc, HFONT hfont);
};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -