Re: What fuction can I use to change the brightness of screen?
- From: voidcoder <voidcoder@xxxxxxxxx>
- Date: Tue, 03 Oct 2006 14:01:01 +0200
Reread my prev post:
>>But note, this will never work on all CE devices as
>>those features are platform specific. Not every display
>>driver supports it directly, some OEMs have separate
>>non-standard brightness/contast/backlight drivers/API
>>to control it...
MorrisTang wrote:
VIDEOPARAMETERS vp = {0};.
GUID guid;
guid.Data1 = 0X02C62061;
guid.Data2 = 0X1097;
guid.Data3 = 0x11d1;
guid.Data4[0] = 0X92;
guid.Data4[1] = 0X0F;
guid.Data4[2] = 0X00;
guid.Data4[3] = 0XA0;
guid.Data4[4] = 0X24;
guid.Data4[5] = 0XDF;
guid.Data4[6] = 0X15;
guid.Data4[7] = 0X6E;
vp.Guid = guid; vp.dwOffset = 0;
vp.dwCommand = VP_COMMAND_SET;
vp.dwFlags = VP_FLAGS_BRIGHTNESS;
vp.dwBrightness = thumbIndex[1] * 10;
int result = ChangeDisplaySettingsEx(NULL, NULL, NULL, CDS_VIDEOPARAMETERS, &vp);
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
This is my code.
Althogh result == DISP_CHANGE_SUCCESSFUL, the brightness of screen didn't change. Could you tell me what mistake do I make??
Thanks a lot.
"voidcoder" wrote:
A standard way to control brightness and contrast is
to use ChangeDisplaySettingsEx() API:
VIDEOPARAMETERS.dwBrightness
VIDEOPARAMETERS.dwContrast
But note, this will never work on all CE devices as
those features are platform specific. Not every display
driver supports it directly, some OEMs have separate
non-standard brightness/contast/backlight drivers/API
to control it...
On Sun, 01 Oct 2006 06:56:03 +0200, MorrisTang <MorrisTang@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
I want to change the brightness of WinCE device.
What function can I use (pass a value to this function) ?
Please give me an example how to use it.
Thanks a lot.
- Follow-Ups:
- Re: What fuction can I use to change the brightness of screen?
- From: MorrisTang
- Re: What fuction can I use to change the brightness of screen?
- References:
- Re: What fuction can I use to change the brightness of screen?
- From: voidcoder
- Re: What fuction can I use to change the brightness of screen?
- From: MorrisTang
- Re: What fuction can I use to change the brightness of screen?
- Prev by Date: Re: What fuction can I use to change the brightness of screen?
- Next by Date: Re: File system is not working in Retail Version in WinCE 5.0
- Previous by thread: Re: What fuction can I use to change the brightness of screen?
- Next by thread: Re: What fuction can I use to change the brightness of screen?
- Index(es):
Relevant Pages
|