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

📄 setvolumdlg.h

📁 wince 系统时间、音量及背光、触摸屏校正以及进程查看大集合r
💻 H
字号:
// SetVolumDlg.h : 头文件
//

#include "Reg.h"

#pragma once

//-------------------------------------------------------------------------
//Macro define
#define MIN_VOLUME            0
#define MAX_VOLUME            0xFFFFFFFF
//-------------------------------------------------------------------------
//Enum value
enum VolumeModeType
{
	VOL_SOFT,
	VOL_LOUD,
	VOL_MUTE
};
//------------------------------------------------------------------------


// CSetVolumDlg 对话框
class CSetVolumDlg : public CDialog
{
// 构造
public:
	CSetVolumDlg(CWnd* pParent = NULL);	// 标准构造函数

// 对话框数据
	enum { IDD = IDD_SETVOLUM_DIALOG };


	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV 支持

// 实现
protected:
	HICON m_hIcon;

	// 生成的消息映射函数
	virtual BOOL OnInitDialog();
#if defined(_DEVICE_RESOLUTION_AWARE) && !defined(WIN32_PLATFORM_WFSP)
	afx_msg void OnSize(UINT /*nType*/, int /*cx*/, int /*cy*/);
#endif
	DECLARE_MESSAGE_MAP()
public:
	bool SetVolumeScreenTap(VolumeModeType volMode);
	bool SetVolumeKeyClick(VolumeModeType volMode);
	bool EnableSoundNotification(BOOL bEnable);
	bool EnableSoundApplication(BOOL bEnable);
	bool EnableSoundEvent(BOOL bEnable);
	bool SetVolume(DWORD dwVol);
protected:
	bool Apply(void);
	CReg m_Reg;
public:
	afx_msg void OnBnClickedButton1();
	afx_msg void OnBnClickedButton2();
	DWORD m_volshow;
	afx_msg void OnBnClickedButton3();
	afx_msg void OnBnClickedButton4();
	afx_msg void OnBnClickedButton8();
	afx_msg void OnBnClickedButton7();
	afx_msg void OnBnClickedButton6();
	afx_msg void OnBnClickedButton5();
	afx_msg void OnBnClickedButton9();
	afx_msg void OnBnClickedButton10();
};

⌨️ 快捷键说明

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