前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >findwindow详解_finddevicehasbeendestroyed啥意思

findwindow详解_finddevicehasbeendestroyed啥意思

作者头像
全栈程序员站长
发布2022-09-21 10:52:08
5510
发布2022-09-21 10:52:08
举报
文章被收录于专栏:全栈程序员必看

大家好,又见面了,我是你们的朋友全栈君。

Normal 0 7.8 磅 0 2 false false false MicrosoftInternetExplorer4 The FindWindow function retrieves a handle to the top-level window whose class name and window name match the

specified strings. This function does not search child windows. This function does not perform a case-sensitive

search. FindWindow 函数根据给定的窗体类名称、窗体名称的字符串搜索父窗体并返回其窗体句柄。这个函数并不搜索子窗体。这个函数并不

完成一个事件感知的搜索。

To search child windows, beginning with a specified child window, use the FindWindowEx function. 要搜索给定窗体的子窗体,使用FindWindowEx 函数。

Syntax 语法

HWND FindWindow( LPCTSTR lpClassName, LPCTSTR lpWindowName );

Parameters 参数

lpClassName [in] Pointer to a null-terminated string that specifies the class name or a class atom created by a previous call to

the RegisterClass or RegisterClassEx function. The atom must be in the low-order word of lpClassName; the high-order

word must be zero. [ 输入] 一个以零作为终结符的字符串指针,给定窗体的类名称或由先前执行RegisterClass 或RegisterClassEx 函数创建的类原子,类

原子的低位两个字节必须是lpClassName 参数,高位两个字节必须是零。

If lpClassName points to a string, it specifies the window class name. The class name can be any name registered

with RegisterClass or RegisterClassEx, or any of the predefined control-class names. 如果lpClassName 指针指向字符串,它就给定了窗体的类名称。类名称可以是RegisterClass 或RegisterClassEx 注册的任意名称,或

者是任何预先定义好的控件类名称。

If lpClassName is NULL, it finds any window whose title matches the lpWindowName parameter. 如果lpClassName 是空指针,函数将按照lpWindowName 参数搜索所有窗体。

lpWindowName [in] Pointer to a null-terminated string that specifies the window name (the window’s title). If this parameter is

NULL, all window names match. [ 输入] 一个以零作为终结符的字符串指针,给定窗体名称(标题)。如果这个参数是空指针,函数搜索时将忽略窗体名称。

Return Value 函数返回值

If the function succeeds, the return value is a handle to the window that has the specified class name and window

name. 如果函数执行成功,返回值是一个给定的窗体类名称和窗体名称的窗体句柄。

If the function fails, the return value is NULL. To get extended error information, call GetLastError. 如果函数执行失败,返回值为零。执行GetLastError 函数获得更多的错误信息。

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/25897606/viewspace-704443/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/25897606/viewspace-704443/

发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/170227.html原文链接:https://javaforall.cn

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档