1005.html

来自「VB技巧问答10000例,是一个教程」· HTML 代码 · 共 22 行

HTML
22
字号
<html>  <head>    <title>使用 GetFocus API</title>  </head>  <BODY BACKGROUND="" BGCOLOR="white" TEXT="black" LINK="red" VLINK="#808080" ALINK="">    <center>      <h1>使用 GetFocus API</h1>    </center><HR><p>Posted by <a href="mailto:yfwu@iname.com">小吴</a> on September 30, 1997 at 20:18:27:<p>In Reply to: <a href="687.html"><b> 如何知道哪个Control 目前 GotFocus</b></a> posted by 阿晴 on September 29, 1997 at 07:00:57:<p>使用 user32 的 GetFocus API 可以得知目前取得 focus 的 hWnd。<br>你可以直接使用这个 hWnd 去做设定,或是和 form 上的控制项比较 hWnd 而取得你要的控制项。<br><p><a name="followups">Follow Ups:</a><br><ul><!--insert: 1005--></ul><!--end: 1005--><br><HR><p></body></html>

⌨️ 快捷键说明

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