带有部分窗口标题的 FindWindow(Windows、C)
是否有任何类似于 FindWindow() 但通过部分标题搜索窗口的 API? 原因是我需要一个窗口的句柄,该窗口的标题有固定部分,但其他部分不断变化。 例如,窗口标题可以是:
DataBase read: XYDB
或
DataBase read: WZDB
在示例中,修复部分是“DataBase read:”
代码赞赏。 谢谢
Is there any API similar to FindWindow() but that searches the windows by partial title?
The reason is that I need to the handle to a window that has a fix part on the title but the other part changes constantly.
So for example the window title could be:
DataBase read: XYDB
or
DataBase read: WZDB
in the examples the fix part is "DataBase read:"
Code appreciated.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 EnumWindows 的示例:
然后像这样调用它:
An example using EnumWindows:
And then call it like this: