demographicsview.h

来自「GPS and Web Service using C++ ATLWTL 源代码」· C头文件 代码 · 共 51 行

H
51
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?