原文链接 -> 传送门
函数功能:
IsWindowEnabled 函数用于判断指定的窗口是否允许接受键盘或鼠标输入。
API 函数原型:
注释:_In_ 说明该参数是输入的
BOOL WINAPI IsWindowEnabled( _In_ HWND hWnd );
参数解析:
|
参数 |
含义 |
|
hWnd |
指向待测窗口句柄 |
返回值:
1. 若窗口允许接受键盘或鼠标输入,则返回值为非 0;
2. 若窗口不允许接受键盘或鼠标输入,则返回值为 0。
备注:
子窗口只有在允许并且可见时才接受输入。
需求:
|
Minimum supported client |
Windows 2000 专业版 [仅桌面应用程序] |
|
Minimum supported server |
Windows 2000 服务器版 [仅桌面应用程序] |
|
Header |
Winuser.h (包含于 Windows.h) |
|
Library |
User32.lib |
|
DLL |
User32.dll |




