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

📄 postmessage.htm

📁 本帮助文件中的Windows API 函数大约有774个
💻 HTM
字号:
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">

<style><!--
body,table {font-family:"宋体"; font-size: 9pt; line-height:11pt;}
a {text-decoration:none} a:hover {color:red;text-decoration:underline}
--></style>
<title>PostMessage</title>
</head>

<body background="../../../images/gray_weave.gif" link="#FF0000" vlink="#FF0000" alink="#FF0000" bgcolor="#FFC8C8">


<div align="center"><center>

<table border="0" width="100%" height="22" cellspacing="0" cellpadding="0">
  <tr>
    <td width="100%" height="16">PostMessage, PostMessageBynum, PostMessageBystring</td>
  </tr>
</table>
</center></div><div align="center"><center>

<table border="1" width="100%" bordercolorlight="#808080" cellspacing="0"
bordercolordark="#FFFFFF">
  <tr>
    <td width="100%" colspan="2">VB声明</td>
  </tr>
  <tr>
    <td width="100%" colspan="2">Declare Function PostMessage&amp; Lib &quot;user32&quot; 
    Alias &quot;PostMessageA&quot; (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As 
    Long, lParam As Any)<br>
    Declare Function PostMessageByNum&amp; Lib &quot;user32&quot; Alias 
    &quot;PostMessageA&quot; (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, 
    ByVal lParam As Long)<br>
    Declare Function PostMessageByString&amp; Lib &quot;user32&quot; Alias 
    &quot;PostMessageA&quot; (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, 
    ByVal lParam As String)</td>
  </tr>
  <tr>
    <td width="100%" colspan="2">说明</td>
  </tr>
  <tr>
    <td width="100%" colspan="2">将一条消息投递到指定窗口的消息队列。投递的消息会在Windows事件处理过程中得到处理。在那个时候,会随同投递的消息调用指定窗口的窗口函数。特别适合那些不需要立即处理的窗口消息的发送</td>
  </tr>
  <tr>
    <td width="100%" colspan="2">返回值</td>
  </tr>
  <tr>
    <td width="100%" colspan="2">Long,如消息投递成功,则返回TRUE(非零)。会设置<a
    href="GetLastError.htm">GetLastError</a></td>
  </tr>
  <tr>
    <td width="100%" colspan="2">参数表</td>
  </tr>
  <tr>
    <td width="25%">参数</td>
    <td width="75%">类型及说明</td>
  </tr>
  <tr>
    <td width="25%">hwnd</td>
    <td width="75%">Long,接收消息的那个窗口的句柄。如设为HWND_BROADCAST,表示投递给系统中的所有顶级窗口。如设为零,表示投递一条线程消息(参考<a
    href="PostThreadMessage.htm">PostThreadMessage</a>)</td>
  </tr>
  <tr>
    <td width="25%">wMsg</td>
    <td width="75%">Long,消息标识符</td>
  </tr>
  <tr>
    <td width="25%">wParam</td>
    <td width="75%">Long,具体由消息决定</td>
  </tr>
  <tr>
    <td width="25%">lParam</td>
    <td width="75%">Any,具体由消息决定</td>
  </tr>
</table>
</center></div>


</body>
</html>

⌨️ 快捷键说明

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