IT Community - Software Programming, Web Development and Technical Support

How can I refresh windows mobile to change backlight?

This is a discussion on How can I refresh windows mobile to change backlight? within the Windows Mobile forums, part of the Mobile Software Development category; How can I refresh windows mobile to change backlight? I am trying to change the brightness of PPC by modifying ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > Mobile Software Development > Windows Mobile

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-24-2007, 11:30 PM
theone theone is offline
D-Web Sr.Programmer
 
Join Date: Jun 2007
Posts: 129
theone is on a distinguished road
Question How can I refresh windows mobile to change backlight?

How can I refresh windows mobile to change backlight?

I am trying to change the brightness of PPC by modifying registry value through code.
KEY: HKEY_CURRENT_USER\ControlPanel\BackLight
DWORD: ACBrigthness = 5
It's working. But, I can see the change after restarted only (soft reset) . I want to see the effect without restart PPC. How can i do this?
I tried below code also....
//To change the registry
HKEY_CURRENT_USER, L"ControlPanel\\BackLight", L"ACBrigthness", value
i am using the below code to refresh the pocket pc.
HANDLE hld = CreateEvent(NULL, FALSE, TRUE,TEXT("BackLightChangeEvent"));
if (hld)
{
SetEvent(hld);
CloseHandle(hld);
}
SendMessage(HWND_BROADCAST, WM_SETTINGCHANGE, NULL,NULL);

But, it's not working what i am doing wrong.. can you plz help me?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-24-2007, 11:33 PM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 882
kingmaker is on a distinguished road
Send a message via Yahoo to kingmaker
Default Re: How can I refresh windows mobile to change backlight?

Hi..., Can you explain what make/model of device you are attempting to get this code to work on. There is no standardized backlight control API, meaning that different OEMs, may have implemented this functionality in slightly different manors.

Some devices (Symbol and Intermec come to mind) will have additional SDKs which include backlight control APIs which are specific to their devices. The approach you seem to be attempting to use is described on MSDN here Enabling a Backlight in relation to the sample backlight control panel applet included within Platform Builder. Platform Builder is a tool OEMs use to generate the OS image that runs on your PDA and it includes numerous samples which may or may not be utilized by OEMs as they start building their device. It is possible your device does not utilize the approach used in the sample, in favor of an OEM created replacement, due to hardware specifics of your particular device and/or their desire for enhanced functionality etc.

You may be able to find a solution by searching for "backlight" + "<name of your device>" etc, as I'm sure someone has probably attempted to do the same thing at some stage in the past.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Change the IP address of Network Adapter in Windows 2000 arjkhanna Networking & Internet Connectivity 8 01-22-2008 02:05 AM
How to fix the appointments in windows mobile using C#? mobilegeek C# Programming 3 08-20-2007 07:37 AM
How to change the home screen programmatically Windows Mobile? theone Windows Mobile 1 07-27-2007 06:22 AM
Is it possible to change the ringtone of Windows Mobile thru C# ? itbarota Windows Mobile 0 07-23-2007 07:00 AM
New T-Mobile phone runs Windows Mobile 6 vadivelanvaidyanathan The Lounge 0 05-22-2007 08:19 AM


All times are GMT -7. The time now is 09:08 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0