文件名称:Screen_App
- 所属分类:
- 系统编程
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 57kb
- 下载次数:
- 0次
- 提 供 者:
- 邝**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
给出了一个通过SendMessage关闭和打开显示器的示例。结论是调用该函数的参数应该为:
SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, cmd)
其中cmd仅取下列值有效:typedef enum { MONITOR_ON = -1,MONITOR_OFF = 2, MONITOR_STANBY = 1} eMonitorCMD
否则被自动忽略。
纠正了许多文献的不全或错误。
但是对于我的笔记本如果在待机过程中合上显示器,下次恢复时必须重新合上一次显示器再打开;上述程序时效,不知道什么原因,有人说这是一个BUG。本机系统为WindowsXP,T61 thinkpad。-Gives a SendMessage example of to control the display. Concluded that the parameters of the function call should be: SendMessage (HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, cmd) which only take the following values of cmd effective: typedef enum (MONITOR_ON =-1, MONITOR_OFF = 2, MONITOR_STANBY = 1) eMonitorCMD otherwise be automatically neglected. To correct a number of incomplete or incorrect documentation. But for my notebook during the standby if the display closed, the next recovery time must be re-closed and then open the display spent above procedure, I do not know why, it is said that this is a BUG. The local system to WindowsXP, T61 thinkpad.
SendMessage(HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, cmd)
其中cmd仅取下列值有效:typedef enum { MONITOR_ON = -1,MONITOR_OFF = 2, MONITOR_STANBY = 1} eMonitorCMD
否则被自动忽略。
纠正了许多文献的不全或错误。
但是对于我的笔记本如果在待机过程中合上显示器,下次恢复时必须重新合上一次显示器再打开;上述程序时效,不知道什么原因,有人说这是一个BUG。本机系统为WindowsXP,T61 thinkpad。-Gives a SendMessage example of to control the display. Concluded that the parameters of the function call should be: SendMessage (HWND_BROADCAST, WM_SYSCOMMAND, SC_MONITORPOWER, cmd) which only take the following values of cmd effective: typedef enum (MONITOR_ON =-1, MONITOR_OFF = 2, MONITOR_STANBY = 1) eMonitorCMD otherwise be automatically neglected. To correct a number of incomplete or incorrect documentation. But for my notebook during the standby if the display closed, the next recovery time must be re-closed and then open the display spent above procedure, I do not know why, it is said that this is a BUG. The local system to WindowsXP, T61 thinkpad.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Screen_App
..........\Debug
..........\.....\Screen_App.exe
..........\off.bat
..........\ReadMe.txt
..........\Release
..........\.......\Screen_App.exe
..........\Screen_App.cpp
..........\Screen_App.dsp
..........\Screen_App.dsw
..........\Screen_App.ncb
..........\Screen_App.opt
..........\Screen_App.plg
..........\StdAfx.cpp
..........\StdAfx.h
..........\Debug
..........\.....\Screen_App.exe
..........\off.bat
..........\ReadMe.txt
..........\Release
..........\.......\Screen_App.exe
..........\Screen_App.cpp
..........\Screen_App.dsp
..........\Screen_App.dsw
..........\Screen_App.ncb
..........\Screen_App.opt
..........\Screen_App.plg
..........\StdAfx.cpp
..........\StdAfx.h