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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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? |
|
#2
| |||
| |||
| 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. |
![]() |
| Thread Tools | |
| Display Modes | |
| |
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 |
Our Partners |