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

📄 demographicsframe.h

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

#pragma once

class CDemographicsFrame : 
	public CFrameWindowImpl<CDemographicsFrame>, 
	public CUpdateUI<CDemographicsFrame>,
	public CAppWindow<CDemographicsFrame>,
	public CFullScreenFrame<CDemographicsFrame>,
	public CMessageFilter, public CIdleHandler
{
	BOOL m_bUseGPS;
public:
	DECLARE_APP_FRAME_CLASS(NULL, IDR_MAINFRAME, L"Software\\WTL\\Demographics")

	CDemographicsView m_view;

	virtual BOOL PreTranslateMessage(MSG* pMsg);

// CAppWindow operations
	bool AppHibernate( bool bHibernate);

	bool AppNewInstance( LPCTSTR lpstrCmdLine);

	void AppSave();

	void AppBackKey();

	virtual BOOL OnIdle();


	BEGIN_UPDATE_UI_MAP(CDemographicsFrame)
		UPDATE_ELEMENT(ID_MENU_USEGPS, UPDUI_MENUPOPUP)
	END_UPDATE_UI_MAP()

	BEGIN_MSG_MAP(CDemographicsFrame)
		MESSAGE_HANDLER(WM_CREATE, OnCreate)
		COMMAND_ID_HANDLER(ID_APP_EXIT, OnFileExit)
		COMMAND_ID_HANDLER(ID_ACTION, OnAction)
		COMMAND_ID_HANDLER(ID_APP_ABOUT, OnAppAbout)
		COMMAND_ID_HANDLER(ID_MENU_USEGPS, OnUseGPS)
		CHAIN_MSG_MAP(CAppWindow<CDemographicsFrame>)
		CHAIN_MSG_MAP(CFullScreenFrame<CDemographicsFrame>)
		CHAIN_MSG_MAP(CUpdateUI<CDemographicsFrame>)
		CHAIN_MSG_MAP(CFrameWindowImpl<CDemographicsFrame>)
	END_MSG_MAP()


	VOID UseGPS( BOOL bUse = TRUE );

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

	LRESULT OnFileExit(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/);

	LRESULT OnAction(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/);

	LRESULT OnAppAbout(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/);

	LRESULT OnUseGPS(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/);



};

⌨️ 快捷键说明

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