怎样判断一个窗口是否具有键盘输入焦点?
解决方案 »
- 100分求代码程序
- 如何把数据插入一个不与数据库相联的本地记录集中?
- 在adoquery中用union all联合2个select句子,出错!
- 江湖救急!急! (数据库问题) 谢了!!!
- 四舍五入的方法?
- 哪位能把以下DELPHI程序转化为VB代码,有高分相送
- 问问这样的软件后台需要做多少个表。每个表设立什么字段。表关系怎样连接
- ORACLE中,怎样取得一个日期的月份?
- 有没有替换字符串中指定字符串的函数?类似vb的replace ?
- 介绍几本有用的书
- 谁能解答用installshield 作delphi7.0的安装盘??(bde)
- TCustomWinSocket的连接被断开之后,如何恢复??
ParametershWnd
[in] Handle to the parent window whose child windows are to be examined. If this parameter is NULL, the function returns a handle to the window at the top of the Z order.
Return ValueIf the function succeeds, the return value is a handle to the child window at the top of the Z order. If the specified window has no child windows, the return value is NULL. To get extended error information, use the GetLastError function. 如果傳入nil, 就能得到
>>当前拥有焦点窗口
wHandle: THandle;
begin
wHandle := GetForegroundWindow;
...
end;
ParametersThis function has no parameters. Return ValuesThe return value is the handle of the foreground window