挂钩获取C ++中QT应用程序的文本名称(或标题) [英] Hook to get text name ( or caption ) of an QT application in C++

查看:420
本文介绍了挂钩获取C ++中QT应用程序的文本名称(或标题)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我有一个在Win32平台上运行的简单QT应用程序.我需要编写一个描述为C ++程序:输入是已经可用的QT应用程序的Windows句柄,输出是该应用程序的文本名称(AKA caption).我希望有人能告诉我正确的方法.
非常感谢. :)

Hi guys,
I have a simple QT application running on Win32 platform. I need to write a C++ program described as: the input is the windows handle of that QT application, which is already available, the output is the text name ( AKA caption ) of the application. I hope someone will show me the way to do this right.
Thanks a lot. :)

推荐答案

使用 ^ ]将QT应用程序的窗口句柄作为其第一个参数.
Use the GetWindowText[^] function with the window handle of the QT application as its first parameter.


这篇关于挂钩获取C ++中QT应用程序的文本名称(或标题)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆