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  
Old 07-24-2007, 10: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
  #2  
Old 07-24-2007, 10:33 PM
kingmaker kingmaker is offline
D-Web Genius
 
Join Date: Jun 2007
Posts: 881
kingmaker is on a distinguished road
Send a message via MSN 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 Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Mobile - Interview FAQ prasannavigneshr Interview Questions & Answers and Tips 15 01-24-2008 03:48 AM
How to Change the IP address of Network Adapter in Windows 2000 arjkhanna Networking & Internet Connectivity 8 01-22-2008 01:05 AM
How to change the home screen programmatically Windows Mobile? theone Windows Mobile 1 07-27-2007 05:22 AM
Is it possible to change the ringtone of Windows Mobile thru C# ? itbarota Windows Mobile 0 07-23-2007 06:00 AM
New T-Mobile phone runs Windows Mobile 6 vadivelanvaidyanathan The Lounge 0 05-22-2007 07:19 AM


All times are GMT -7. The time now is 01:59 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.
Our Partners
One Way Moving Companies | Stamford Dentist | Euro Millions Lottery | Home Loans| Furniture

SEO by vBSEO 3.0.0