文章分类 -  Win32API

摘要:unit Unit1;{By 月夜风筝,icc}interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls;type TForm1 = class(TForm) btn1: TButton; procedure btn1Click(Sende... 阅读全文
posted @ 2010-08-25 23:12 覆雨翻云 阅读(217) 评论(0) 推荐(0)
摘要:一句话,超级简单!!!SendMessage(Application.Handle, WM_SYSCOMMAND, SC_MONITORPOWER, 2); 阅读全文
posted @ 2010-08-25 21:24 覆雨翻云 阅读(227) 评论(0) 推荐(0)
摘要:LONG SetWindowLong( HWND hWnd, int nIndex, LONG dwNewLong ); 这个函数根据nIndex的取值不同,可以实现不同的功能. 其中nInde可以取: GWL_EXSTYLE: 设置窗口扩展风格,即CreateWindowEx的DWORD wExStyle 参数 GWL_STYLE: 设置窗口风格,即CreateWindow的DWORD dwSt... 阅读全文
posted @ 2010-08-01 19:28 覆雨翻云 阅读(1019) 评论(0) 推荐(0)