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

📄 servicetab.hpp

📁 j2me is based on j2mepolish, client & server for mobile application.
💻 HPP
字号:

//         Copyright E骾n O'Callaghan 2008 - 2008.
// Distributed under the Boost Software License, Version 1.0.
//    (See accompanying file LICENSE_1_0.txt or copy at
//          http://www.boost.org/LICENSE_1_0.txt)

#pragma once

#include "StdAfx.hpp"
#include <deque>
#include <auxiliary/txml_ini.hpp>

#include "Resource.h"

#include "nt_service.hpp"

#include "AtlAutosizeDlg.h"
#include "TabPage.hpp"

class ServiceTab :
	public WTLx::TabPageImpl<ServiceTab>,
	public ATL::CAutoSizeWindow<ServiceTab, false>,
	public WTL::CWinDataExchange<ServiceTab>,
	private boost::noncopyable
{
protected:
	typedef ServiceTab thisClass;
	typedef WTLx::TabPageImpl<thisClass> baseClass;
	typedef ATL::CAutoSizeWindow<thisClass, false> autosizeClass;
	
public:
	enum { IDD = IDD_SERVICE_TAB };

	ServiceTab(aux::txml_ini& ini)
	{}
	
	BOOL PreTranslateMessage(MSG* pMsg)
	{
		return this->IsDialogMessage(pMsg);
	}

	BEGIN_MSG_MAP_EX(thisClass)
		MSG_WM_INITDIALOG(OnInitDialog)
		MSG_WM_CLOSE(OnClose)

		if (uMsg == WM_FORWARDMSG)
			if (PreTranslateMessage((LPMSG)lParam)) return TRUE;

		CHAIN_MSG_MAP(autosizeClass)
		CHAIN_MSG_MAP(baseClass)
		REFLECT_NOTIFICATIONS()
	END_MSG_MAP()

	BOOL DoDataExchange(BOOL bSaveAndValidate = FALSE, UINT nCtlID = (UINT)-1);
		
	static CWindowMapStruct* GetWindowMap();

	LRESULT OnInitDialog(HWND, LPARAM);
	void OnClose();

	void display_service(service_ptr svc_ptr);

protected:
};

⌨️ 快捷键说明

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