IsWindow function
来源:互联网 发布:caffe bene 编辑:程序博客网 时间:2024/06/05 10:49
Determines whether the specified window handle identifies an existing window.
通过所指定的窗口句柄来判断此窗口是否存在。
Syntax
BOOL WINAPI IsWindow( _In_opt_ HWND hWnd);
Parameters
参数
- hWnd [in, optional](可选)
Type: HWND
A handle to the window to be tested.
需要测试的窗口的句柄。
Return value
返回值
Type:
Type: BOOL
If the window handle identifies an existing window, the return value is nonzero.
如果窗口句柄指向的窗口存在,则返回值为非零。
If the window handle does not identify an existing window, the return value is zero.
如果窗口句柄指向的窗口不存在,则返回值为零。
Remarks
备注
A thread should not use IsWindow for a window that it did not create because the window could be destroyed after this function was called. Further, because window handles are recycled the handle could even point to a different window.
一个线程不能为没有创建的窗口而使用IsWindow函数,因为这个函数被调用后,窗口会被破坏掉。并且,由于窗口句柄是回收利用的,因此还有可能指向不同的窗口。
Examples
For an example, see Creating a Modeless Dialog Box.
Requirements
Minimum supported client
Minimum supported server
Header
- Winuser.h (include Windows.h)
Library
- User32.lib
DLL
- User32.dll
See also
- Reference
- IsWindowEnabled
- IsWindowVisible
- Conceptual
- Windows
- IsWindow function
- IsWindow
- IsWindow()函数
- IsWindow函数的作用
- IsWindow函数的作用
- MoveWindow 时候 ASSERT(::IsWindow(m_hWnd))?
- PreTranslateMessage DoModal() ASSERT(::IsWindow(m_hWnd)
- IsWindow函数不适用于新桌面
- jquery中的工具方法$.isFunction, $.isArray(), $.isWindow()
- 【WIN 32 报错】 Expression: ::IsWindow(m_hWnd)
- 写MFC程序ASSERT(IsWindow(pTemp->m_hWnd))报错
- 解决GetDlgItem 使用时出现ASSERT(::IsWindow(m_hWnd))断言
- MFC中ASSERT(IsWindow(pTemp->m_hWnd));报错
- Function
- function
- function
- function $()
- Function
- 直接拿来用!最火的Android开源项目
- Workspace in use or cannot be created, choose a different one.
- 知乎Android客户端简单分析
- Android 子项目 列表
- windows下androidNDK环境配置
- IsWindow function
- android listview点击后没有反应原因分析
- EXTJS Panel布局
- Linux两种定时器
- WIN8长文件名的删除
- 送大家几款可以运用到实际项目的flash+xml控件
- 面向程序员的数据库访问性能优化法则
- Suse Linux下分区只读问题的解决办法
- Z26上维吉尼亚和行置换的乘积密码体制