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

📄 class_csubclasswnd.html

📁 用VC實現截取Window的消息
💻 HTML
📖 第 1 页 / 共 2 页
字号:
&nbsp;</td><td> [in] Specifies the message id. </td></tr><tr><td valign=top><em>wParam</em>&nbsp;</td><td> [in] Specifies additional message-specific information. </td></tr><tr><td valign=top><em>lParam</em>&nbsp;</td><td> [in] Specifies additional message-specific information.<p></td></tr></table></dl><dl compact><dt><b>Returns: </b><dd> If the function succeeds, the return value is nonzero. If the function fails, the return value is zero. To get extended error information, call GetLastError.</dl></div><a name="b2" doxytag="CSubclassWnd::ProcessWindowMessage"><p><table width=100%% cellpadding=2 cellspacing=0 border=0><tr><td class="md"><b>BOOL CSubclassWnd::ProcessWindowMessage (UINT <em>message</em>, WPARAM <em>wParam</em>, LPARAM <em>lParam</em>, LRESULT &amp; <em>lResult</em>)<code> [protected, virtual]</code></b></td></tr></table></a><div class="in"><p>Called to handle window messages.<p>Derived classes can override this method to handle any window messages sent to the subclassed window. Normally the programmer won't code this directly, but will instead use the BEGIN_MSG_DISPATCH/END_MSG_DISPATCH macros.<p><dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>message</em>&nbsp;</td><td> [in] Specifies the message id. </td></tr><tr><td valign=top><em>wParam</em>&nbsp;</td><td> [in] Specifies additional message-specific information. </td></tr><tr><td valign=top><em>lParam</em>&nbsp;</td><td> [in] Specifies additional message-specific information. </td></tr><tr><td valign=top><em>lResult</em>&nbsp;</td><td> [out] A reference to the result value to be returned to the caller.<p></td></tr></table></dl><dl compact><dt><b>Returns: </b><dd> If the message was handled, the return value is non-zero. If the message was not handled, the return value is zero.</dl></div><a name="a2" doxytag="CSubclassWnd::SendMessage"><p><table width=100%% cellpadding=2 cellspacing=0 border=0><tr><td class="md"><b>LRESULT CSubclassWnd::SendMessage (UINT <em>message</em>, WPARAM <em>wParam</em> = 0, LPARAM <em>lParam</em> = 0)<code> [inline]</code></b></td></tr></table></a><div class="in"><p>Sends a message to the subclassed window.<p><dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>message</em>&nbsp;</td><td> [in] Specifies the message id. </td></tr><tr><td valign=top><em>wParam</em>&nbsp;</td><td> [in] Specifies additional message-specific information. </td></tr><tr><td valign=top><em>lParam</em>&nbsp;</td><td> [in] Specifies additional message-specific information.<p></td></tr></table></dl><dl compact><dt><b>Returns: </b><dd> The return value is the result of the message processing and depends on the message.</dl></div><a name="a4" doxytag="CSubclassWnd::SendMessageToDescendants"><p><table width=100%% cellpadding=2 cellspacing=0 border=0><tr><td class="md"><b>void CSubclassWnd::SendMessageToDescendants (UINT <em>message</em>, WPARAM <em>wParam</em>, LPARAM <em>lParam</em>, BOOL <em>bDeep</em> = TRUE)</b></td></tr></table></a><div class="in"><p>Sends a message to all child windows of the subclassed window.<p><dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>message</em>&nbsp;</td><td> [in] Specifies the message id. </td></tr><tr><td valign=top><em>wParam</em>&nbsp;</td><td> [in] Specifies additional message-specific information. </td></tr><tr><td valign=top><em>lParam</em>&nbsp;</td><td> [in] Specifies additional message-specific information. </td></tr><tr><td valign=top><em>bDeep</em>&nbsp;</td><td> [in] Specifies whether or not the message should be sent recursively to all children.</td></tr></table></dl></div><a name="b6" doxytag="CSubclassWnd::SubclassWindow"><p><table width=100%% cellpadding=2 cellspacing=0 border=0><tr><td class="md"><b>BOOL CSubclassWnd::SubclassWindow (HWND <em>hWnd</em>, BOOL <em>bReflect</em> = TRUE)<code> [protected]</code></b></td></tr></table></a><div class="in"><p>Called to subclass the specified window.<p>If the <em>bReflect</em> parameter is non-zero then the parent window will be subclassed to support message reflection.<p><dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>hWnd</em>&nbsp;</td><td> [in] Specifies the handle of the window to be subclassed. </td></tr><tr><td valign=top><em>bReflect</em>&nbsp;</td><td> [in] Specifies whether or not the parent should reflect messages back to the window.<p></td></tr></table></dl><dl compact><dt><b>Returns: </b><dd> If the window was subclassed, the return value is non-zero. If the window was not subclassed, the return value is zero.</dl></div><a name="b7" doxytag="CSubclassWnd::UnsubclassWindow"><p><table width=100%% cellpadding=2 cellspacing=0 border=0><tr><td class="md"><b>HWND CSubclassWnd::UnsubclassWindow ()<code> [protected]</code></b></td></tr></table></a><div class="in"><p>Called to unsubclass the specified window.<p><dl compact><dt><b>Returns: </b><dd> The handle to the window previously subclassed.</dl></div><hr>The documentation for this class was generated from the following files:<ul><li>subclasswnd.h<li>subclasswnd.cpp</ul><hr><address><small>Generated at Thu Jun 8 16:22:14 2000 for CSubclassWnd by<a href="http://www.stack.nl/~dimitri/doxygen/index.html"><img src="doxygen.gif" alt="doxygen" align=center border=0 width=118 height=53></a> 1.1.1 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>, &copy; 1997-2000</small></address></body></html>

⌨️ 快捷键说明

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