|
// 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);
};
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.