findwindow详解_finddevicehasbeendestroyed啥意思

findwindow详解_finddevicehasbeendestroyed啥意思Normal07.8磅02falsefalsefalse…

大家好,又见面了,我是你们的朋友全栈君。如果您正在找激活码,请点击查看最新教程,关注关注公众号 “全栈程序员社区” 获取激活教程,可能之前旧版本教程已经失效.最新Idea2022.1教程亲测有效,一键激活。

Jetbrains全系列IDE使用 1年只要46元 售后保障 童叟无欺

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.net/170227.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • db2codepage作用_dbcc checktable

    db2codepage作用_dbcc checktable1、db2变量查看  db2set-all  (connecttodbanme)getdbcfg  db2pd-osinfo这个命令很强大哦  2、db2c变量的设置用命令  db2set变量=value  可以参考一下:  客户端:  db2codepage=1386(简体中文)  db2country

    2022年9月15日
    0
  • cdrecord光盘烧录工具

    cdrecord光盘烧录工具

    2021年8月24日
    67
  • python 装饰器

    python 装饰器本文首先介绍了什么是闭包函数,然后从闭包函数引入到了函数装饰器、类装饰器,之后又说明了如果一个函数被多个装饰器同时修饰时它们的执行顺序是什么样的,最后介绍了避免装饰后原函数信息丢失的解决方案。

    2022年7月5日
    23
  • Linux——Kali更新源(常用镜像源已列出)

    Linux——Kali更新源(常用镜像源已列出)更新指令 apt-getupdateapt-getupgrade 更换kali最新国内更新源sources.list 打开sources.list文件命令: leafpad/etc/apt/sources.list 添加以下更新源: #中科大deb<http://mirrors.ustc.edu.cn/kali>kali-rollingmainnon-freecontribdeb-srcshttp://mirrors.ustc..

    2022年5月8日
    179
  • C++ 单例模式_c 单例模式

    C++ 单例模式_c 单例模式原创文章,转载请注明出处。本文主要从单例的用处以及问题所做介绍

    2025年6月12日
    2
  • idea tomcat localhost log 乱码_idea tomcat 乱码

    idea tomcat localhost log 乱码_idea tomcat 乱码解决idea日志乱码和tomcat日志乱码问题1idea启动tomcat乱码遇到的问题:idea整合SSM项目,tomcat启动,启动时查看idea上的tomcat日志,出现乱码:但是直接用tomcat的startup.bat启动,无乱码:出现的原因:查看tomcat/conf/logging.propertiesjava.util.logging.ConsoleHandler.encoding=GBK而本window系统使用的也是GBK编码,所以直接使用bat文件启动正常,

    2022年9月26日
    0

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号