themetestdialog.hpp

来自「j2me is based on j2mepolish, client & se」· HPP 代码 · 共 59 行

HPP
59
字号

//         Copyright E骾n O'Callaghan 2006 - 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 "Resource.h"
//#include "DdxEx.hpp"

#include "TabPage.hpp"
#include "UxthemeWrapper.hpp"

class ThemeTestDialog :
	public WTLx::TabPageImpl<ThemeTestDialog>,
	public WTL::CDialogResize<ThemeTestDialog>
{
protected:
	typedef ThemeTestDialog thisClass;
	typedef WTLx::TabPageImpl<thisClass> baseClass;
	typedef WTL::CDialogResize<thisClass> resizeClass;

public:
	enum { IDD = IDD_THEMETEST };

	ThemeTestDialog()
	{}

	BOOL PreTranslateMessage(MSG* pMsg)
	{
		return this->IsDialogMessage(pMsg);
	}

	BEGIN_MSG_MAP_EX(thisClass)
		MSG_WM_INITDIALOG(onInitDialog)

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

		CHAIN_MSG_MAP(baseClass)
		CHAIN_MSG_MAP(resizeClass)
	END_MSG_MAP()

	BEGIN_DLGRESIZE_MAP(thisClass)

	END_DLGRESIZE_MAP()

	LRESULT onInitDialog(HWND, LPARAM)
	{
		::SetWindowText(GetDlgItem(IDC_EDIT2), L"Eoin");
		return 0;
	}

protected:
	std::wstring giveme;
};

⌨️ 快捷键说明

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