⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 15.htm

📁 好书啊!很好哦
💻 HTM
字号:
<!-- saved from url=(0022)http://internet.e-mail -->
<html>
<head>
<title>截获与管理Windows信息                           </title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="inc.css">
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#000000" vlink="195434" alink="195434">

<table width="621" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
      <td width="621"><a href="http://www.CoDelphi.com"><img src="images/logo.gif" border="0" width="153" height="60"><img src="images/bigbanner.gif" border="0" width="468" height="60"></a></td>
    </tr>
  </table><br>
<br>
<table width="621" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr> 
    <td align="left" valign="top" class="font9" height="155"> 
      <div align="center" class="btitle">截获与管理Windows信息                           <br>
        <br>
      </div>
      <div align="center"><strong>CoDelphi.com                                      </strong></div>
       
      <b><br>
       摘 要</b>:如何用一个程序截获或(和)管理Windows信息         <br>
      <b> 关键字</b>:Windows 信息 监听 列表                             <br>
      <b> 类 别</b>:系统控制                                           
      <hr size="1" width="100%">
      <span class="content">    有时候我们为了多项应用而要管理Windows的信息。我们怎样才能做到呢?<Br><Br>{ 这个例子定义的程序可以收取所有发往主窗口的信息 } <Br><Br>Unit TesteandoEsta; <Br><Br>Interface <Br><Br>Uses <Br><Br>    SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls, Forms, Dialogs, Menus; <Br><Br>Type <Br><Br>   TForm1 = Class (TForm) <Br><Br>   Private {Private declarations} <Br>   Public  {Public declarations} <Br><Br>      Procedure WinMsg (Var Msg : TMsg; Var Handled : Boolean); <Br><Br>End; <Br><Br>Var <Br><Br>   Form1 : TForm1; <Br><Br>Implementation <Br><Br>{$R *.DFM} <Br><Br>{ 所有发送到主窗体的消息,保存在变量Msg中。 } <Br><Br>Procedure TForm1.WinMsg (Var Msg : TMsg; Var Handled : Boolean); <Br><Br>Begin <Br><Br>     If Msg.Message = WM_SYSCOMMAND Then Beep; <Br><Br>     { 接收到消息时的通知} <Br><Br>End; <Br><Br>Procedure TForm1.FormCreate (Sender : TObject); <Br><Br>Begin <Br><Br>     Application.OnMessage := WinMsg; <Br><Br>    { 替换消息句炳} <Br><Br>End; <Br></span> 
      <table border="0" cellspacing="0" cellpadding="1" class="font9" align="center" width="100%">
        <tr align="left" valign="middle" bgcolor="195434"> 
          <td height="1"></td>
        </tr>
      </table>
     
    </td>
  </tr>
  <tr> 
    <td bgcolor="#C9C9C6" height="2"></td>
  </tr>
</table>
<div align="center"><br>
  中文开发在线<a href="http://www.codelphi.com" target="_blank">www.codelphi.com</a>授权使用。
</div>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -