Screen_App

所属分类:Windows编程
开发工具:Visual C++
文件大小:57KB
下载次数:83
上传日期:2009-05-05 06:58:03
上 传 者thebabe
说明:  给出了一个通过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.)

文件列表:
Screen_App\Debug\Screen_App.exe (200813, 2009-05-04)
Screen_App\Debug (0, 2009-05-04)
Screen_App\off.bat (71, 2009-05-04)
Screen_App\Release\Screen_App.exe (24576, 2009-05-04)
Screen_App\Release (0, 2009-05-04)
Screen_App\Screen_App.cpp (1704, 2009-05-04)
Screen_App\Screen_App.dsp (4001, 2009-05-04)
Screen_App\Screen_App.dsw (545, 2009-05-04)
Screen_App\Screen_App.ncb (41984, 2009-05-04)
Screen_App\Screen_App.opt (54784, 2009-05-04)
Screen_App\Screen_App.plg (2555, 2009-05-04)
Screen_App\StdAfx.cpp (297, 2009-05-04)
Screen_App\StdAfx.h (791, 2009-05-04)
Screen_App (0, 2009-05-04)

======================================================================== WIN32 APPLICATION : Screen_App ======================================================================== AppWizard has created this Screen_App application for you. This file contains a summary of what you will find in each of the files that make up your Screen_App application. Screen_App.cpp This is the main application source file. Screen_App.dsp This file (the project file) contains information at the project level and is used to build a single project or subproject. Other users can share the project (.dsp) file, but they should export the makefiles locally. ///////////////////////////////////////////////////////////////////////////// Other standard files: StdAfx.h, StdAfx.cpp These files are used to build a precompiled header (PCH) file named Screen_App.pch and a precompiled types file named StdAfx.obj. ///////////////////////////////////////////////////////////////////////////// Other notes: AppWizard uses "TODO:" to indicate parts of the source code you should add to or customize. /////////////////////////////////////////////////////////////////////////////

近期下载者

相关文件


收藏者