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

📄 customsettings.h

📁 teamviewer source code vc++
💻 H
字号:
//  Copyright (C) 2006 TeamViewer GmbH. All Rights Reserved.
//
//  TeamViewer is free software; you can redistribute it and/or modify
//  it under the terms of the GNU General Public License as published by
//  the Free Software Foundation; either version 2 of the License, or
//  (at your option) any later version.
//
//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU General Public License for more details.
//
//  You should have received a copy of the GNU General Public License
//  along with this program; if not, write to the Free Software
//  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,
//  USA.
//

#ifndef CUSTOMSETTINGS_H__
#define CUSTOMSETTINGS_H__ 
#pragma once

#define DEFAULT_JPEGLEVEL		6
#define DEFAULT_COMPRESSLEVEL	6
#define MAX_JPEGLEVEL			1
#define MAX_COMPRESSLEVEL		9

class CustomSettings
{
public:
	CustomSettings();
	~CustomSettings();
	int DoDialog(HWND parent);

	CARD32	GetCompression() { return m_Compression; }
	void	SetCompression(CARD32 value) { m_Compression = value; }
	CARD8	GetColorDepth() { return m_ColorDepth; }
	void	SetColorDepth(CARD8 value) { m_ColorDepth = value; }
	bool	GetRemoveWallpaper() { return m_RemoveWallpaper; }
	void	SetRemoveWallpaper(bool value) { m_RemoveWallpaper = value; }
	static  void Compression2Encoding(int compression, int *enc, int *jpeg, int *tight);

protected:
	static	BOOL CALLBACK DlgProc(HWND hwnd,  UINT uMsg, WPARAM wParam, LPARAM lParam);
	void	InitDialog(HWND hwnd);
	void	ApplySettings(HWND hwnd);
	//int		Encoding2Combo(CARD32 enc);
	//CARD32	Combo2Encoding(int combo);

private:
	CARD32	m_Compression;
	CARD8	m_ColorDepth;
	bool	m_RemoveWallpaper;
};

#endif CUSTOMSETTINGS_H__

⌨️ 快捷键说明

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