开发者

Controlling screen brightness programmatically on Windows Mobile 6.1

We have an HTC handset running Windows Mobile 6.1. Is there a way to increase/decrease screen brightness for this device programmatically?

The application is being developed in C#, so a .NET wrapper would be preferable, but an unmanaged API would also be accep开发者_Go百科table.

Also, how can we turn the screen on/off to save battery while a particular application is running?


You would use the power management APIs to change the backlight settings. Also the WinMo 5 SDKs ship with a sample application called Power Manager that demonstrates how to programmatically change the state of the backlight. It's in C, but is pretty straightforward to port.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜