📄 group__msg__pass__fns.htm
字号:
<tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="group__win32__types.htm#ga6">UINT</a> </td> <td class="mdname" nowrap> <em>uRemoveMsg</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Peeks a message from the message queue of a main window. <p>This functions peek a message from the message queue of the window <em>hWnd</em>; if <em>bWait</em> is TRUE, it will wait for the message, else return immediatly.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>pMsg</em> </td><td>Pointer to the result message. </td></tr> <tr><td valign="top"></td><td valign="top"><em>hWnd</em> </td><td>The handle to the window. </td></tr> <tr><td valign="top"></td><td valign="top"><em>iMsgFilterMin</em> </td><td>The min identifier of the message that should be peeked. </td></tr> <tr><td valign="top"></td><td valign="top"><em>iMsgFilterMax</em> </td><td>The max identifier of the message that should be peeked. </td></tr> <tr><td valign="top"></td><td valign="top"><em>bWait</em> </td><td>Whether to wait for a message. </td></tr> <tr><td valign="top"></td><td valign="top"><em>uRemoveMsg</em> </td><td>Whether remove the message from the message queue. Should be the following values:<ul><li>PM_NOREMOVE<br> Leave it in the message queue.</li><li>PM_REMOVE Remove it from the message queue.</li><li>PM_NOYIELD Nouse now.</li></ul></td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>TRUE if there is a message peeked, or FALSE.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__msg__pass__fns.htm#ga3">GetMessage</a>, <a class="el" href="group__msg__pass__fns.htm#ga7">PeekPostMessage</a>, <a class="el" href="group__msg__pass__fns.htm#ga5">HavePendingMessage</a>, <a class="el" href="group__msg__pass__fns.htm#ga8">PostMessage</a> </dd></dl><p>Referenced by <a class="el" href="window_8h-source.htm#l01933">GetMessage()</a>, and <a class="el" href="window_8h-source.htm#l01998">PeekMessage()</a>. </td> </tr></table><a class="anchor" name="ga7" doxytag="window.h::PeekPostMessage"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"><a class="el" href="group__simple__types.htm#ga0">BOOL</a> PeekPostMessage </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="struct__MSG.htm">PMSG</a> </td> <td class="mdname" nowrap> <em>pMsg</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="group__handles.htm#ga1">HWND</a> </td> <td class="mdname" nowrap> <em>hWnd</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>iMsgFilterMin</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>iMsgFilterMax</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="group__win32__types.htm#ga6">UINT</a> </td> <td class="mdname" nowrap> <em>uRemoveMsg</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Peeks a post message from the message queue of a main window. <p>This functions peek a message from the message queue of the window <em>hWnd</em> and returns immediatly. Unlike <em>PeekMessage</em>, this function only peek a post message.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>pMsg</em> </td><td>Pointer to the result message. </td></tr> <tr><td valign="top"></td><td valign="top"><em>hWnd</em> </td><td>The handle to the window. </td></tr> <tr><td valign="top"></td><td valign="top"><em>iMsgFilterMin</em> </td><td>The min identifier of the message that should be peeked. </td></tr> <tr><td valign="top"></td><td valign="top"><em>iMsgFilterMax</em> </td><td>The max identifier of the message that should be peeked. </td></tr> <tr><td valign="top"></td><td valign="top"><em>uRemoveMsg</em> </td><td>Whether remove the message from the message queue. Should be the following values:<ul><li>PM_NOREMOVE<br> Leave it in the message queue.</li><li>PM_REMOVE Remove it from the message queue.</li><li>PM_NOYIELD Nouse now.</li></ul></td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>TRUE if there is a message peeked, or FALSE.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__msg__pass__fns.htm#ga3">GetMessage</a>, <a class="el" href="group__msg__pass__fns.htm#ga6">PeekMessage</a>, <a class="el" href="group__msg__pass__fns.htm#ga5">HavePendingMessage</a>, <a class="el" href="group__msg__pass__fns.htm#ga8">PostMessage</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga8" doxytag="window.h::PostMessage"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">int PostMessage </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__handles.htm#ga1">HWND</a> </td> <td class="mdname" nowrap> <em>hWnd</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>iMsg</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="group__win32__types.htm#ga8">WPARAM</a> </td> <td class="mdname" nowrap> <em>wParam</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="group__win32__types.htm#ga9">LPARAM</a> </td> <td class="mdname" nowrap> <em>lParam</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Posts a message into the message queue of a window and returns immediatly. <p>This functions posts a message into the message queue of the window <em>hWnd</em> and returns immediately.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>hWnd</em> </td><td>The handle to the window. </td></tr> <tr><td valign="top"></td><td valign="top"><em>iMsg</em> </td><td>The identifier of the message. </td></tr> <tr><td valign="top"></td><td valign="top"><em>wParam</em> </td><td>The first parameter of the message. </td></tr> <tr><td valign="top"></td><td valign="top"><em>lParam</em> </td><td>The second parameter of the message.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>ERR_OK on success, < 0 on errors.</dd></dl><dl compact><dt><b>Return values:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>ERR_OK</em> </td><td>Post message successfully. </td></tr> <tr><td valign="top"></td><td valign="top"><em>ERR_QUEUE_FULL</em> </td><td>The message queue is full. </td></tr> <tr><td valign="top"></td><td valign="top"><em>ERR_INV_HWND</em> </td><td>Invalid window handle.</td></tr> </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__msg__pass__fns.htm#ga9">SendMessage</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga15" doxytag="window.h::PostQuitMessage"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">int PostQuitMessage </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__handles.htm#ga1">HWND</a> </td> <td class="mdname1" valign="top" nowrap> <em>hWnd</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Puts a MSG_QUIT message into the message queue of a main window. <p>This function puts a MSG_QUIT message into the message queue of the main window <em>hWnd</em>. The next call to <em>GetMessage</em> will return 0.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>hWnd</em> </td><td>The handle to the main window. </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>0 if all OK, < 0 on error.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__msg__pass__fns.htm#ga3">GetMessage</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga11" doxytag="window.h::PostSyncMessage"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">int PostSyncMessage </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="group__handles.htm#ga1">HWND</a> </td> <td class="mdname" nowrap> <em>hWnd</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>iMsg</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="group__win32__types.htm#ga8">WPARAM</a> </td> <td class="mdname" nowrap> <em>wParam</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="group__win32__types.htm#ga9">LPARAM</a> </td> <td class="mdname" nowrap> <em>lParam</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -