advbacklight.h

来自「i.mx27 soc for wince 6.0」· C头文件 代码 · 共 76 行

H
76
字号
//
// 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 + =
减小字号Ctrl + -
显示快捷键?