Files
uTools-Manuals/src/docs/win32api/GetFocus.html
2020-06-06 20:39:00 +08:00

13 lines
901 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<html>
<body>
<FONT style="FONT: 12px 宋体" color=black>
<h3>函数功能</h3>该函数获取与调用线程消息队列相关的窗口的句柄,该窗口拥有输入焦点。<br>
<h3>函数原型</h3>HWND GetFocusVOID<br>
<h3>参数</h3>无。<br>
<h3>返回值</h3>为拥有键盘输入焦点的窗口句柄若调用线程的消息队列没有相关的持有键盘输入焦点的窗口则返回值为NULL。<br>
备往尽管GetFocus返回NULL但可能另一线程的队列与拥有输入焦点的窗口相关。便用GetForeyroundWindow函数来获得用户目前工作的窗口。可以使用AttachThreadlnPut函数把线程的消息队列与另一线程的窗口关联起来。<br>
<h3>速查</h3>Windows NT3.1及以上版本Windows95及以上版本Windows1.0及以上版本头文件winuser.h库文件user32.lib。<br>
</body>
</html>