VC++ adjusts the brightness of the notebook screen (with source code)

VC++ commonly used functions package code a series of articles and source code (advertisement, haha, look at the series and then decide whether to subscribe)

https://blog.csdn.net/kaizi318/article/details/108846326

The source code demo has been uploaded to the Baidu network disk: permanent effective, the code realizes the function of scheduling the brightness of the laptop screen

versus

The adjustment of the system display is synchronized, and the code modification will modify this value synchronously

1. Where can I use it? Haha, let’s not talk about it, anyway, my project is used

There is also a need to turn off the display sometimes, then the computer is in hibernation at this time.

It is very technically difficult to wake up from sleep. The only way is to wake up regularly.

Otherwise, because all processes are in a suspended state during hibernation, it will be more troublesome in short!

 

The most common way before: as follows

Turn off the display SendMessage(FindWindow(0,0), WM_SYSCOMMAND, SC_MONITORPOWER, 2);

Open the display SendMessage(FindWindow(0,0), WM_SYSCOMMAND, SC_MONITORPOWER, -1);<

Guess you like

Origin blog.csdn.net/kaizi318/article/details/108867041