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

📄 advbacklight.h

📁 Microsoft WinCE 6.0 BSP FINAL release source code for use with the i.MX27ADS TO2 WCE600_FINAL_MX27_S
💻 H
字号:
//
// Copyright (c) Microsoft Corporation.  All rights reserved.
//
//
// Use of this source code is subject to the terms of the Microsoft end-user
// license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
// If you did not accept the terms of the EULA, you are not authorized to use
// this source code. For a copy of the EULA, please see the LICENSE.RTF on your
// install media.
//
/**
THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.

Purpose:    Function prototypes for code in customised 
"Advanced..." button under Display Properties\Backlight tab
**/
//------------------------------------------------------------------------------
//
// Copyright (C) 2006, Freescale Semiconductor, Inc. All Rights Reserved.
// THIS SOURCE CODE, AND ITS USE AND DISTRIBUTION, IS SUBJECT TO THE TERMS
// AND CONDITIONS OF THE APPLICABLE LICENSE AGREEMENT 
//
//------------------------------------------------------------------------------


#ifndef _APPS_ADVBACKLIGHT_ADVBACKLIGHT_H
#define _APPS_ADVBACKLIGHT_ADVBACKLIGHT_H

#include <windows.h>
#include <windowsx.h>
#include <commctrl.h>
#include <string.h>
#include <Winuser.h>
#include <prsht.h>

#include "resource.h"

/*********************************************************************
 MACRO DEFINITIONS 
*********************************************************************/
#define EVENTNAME_BACKLIGHTLEVELCHANGEEVENT     L"BackLightLevelChangeEvent"

/*********************************************************************
 ENUMERATIONS AND STRUCTURES 
*********************************************************************/
/*********************************************************************
 FUNCTION PROTOTYPES
*********************************************************************/

void GetFromRegistry(DWORD *dwState1, DWORD *dwState2, LPCTSTR lpszRegKey, 
                     LPCTSTR lpszUseBat, LPCTSTR lpszUseExt); 
void SetToRegistry(DWORD *dwState1, DWORD *dwState2, LPCTSTR lpszRegKey, 
                   LPCTSTR lpszRegValue1, LPCTSTR lpszRegValue2); 
BOOL APIENTRY AdvancedDlgProc (HWND hDlg, UINT message, UINT wParam, LONG lParam);
extern "C" BOOL BacklightAdvApplet(HWND hDlg);
extern "C" BOOL DllEntry(HANDLE hInstance, DWORD fdwReason, LPVOID lpvReserved);

void InitSliders(HWND hDlg, DWORD dwBattBacklightLevel, DWORD dwExtBacklightLevel);
void UpdateBklSettings(HWND hDlg);
void RestoreBklSettings(DWORD dwBattLevel, DWORD dwExtLevel);

/*********************************************************************
 EXTERN DECLARATIONS
*********************************************************************/
/*********************************************************************
 CLASS DEFINITIONS
*********************************************************************/
#endif  // _APPS_ADVBACKLIGHT_ADVBACKLIGHT_H

/*********************************************************************
 END OF FILE
*********************************************************************/

⌨️ 快捷键说明

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