HWND 是否可见? [英] Is HWND visible?
本文介绍了HWND 是否可见?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
那些该死的用户和他们最小化的窗口.
Those darned users and their minimized windows.
在 C# 中,如果我有一个窗口的 HWND,有没有办法判断它是否在桌面上可见?
In C#, if I have a window's HWND, is there a way to tell if it is visible on the desktop?
推荐答案
GetWindowPlacement
函数返回一个 WINDOWPLACEMENT
结构,其中有一个字段 showCmd
:
指定窗口的当前显示状态.
Specifies the current show state of the window.
这个细节读起来好像你要设置窗口状态,但我怀疑这是因为它们是从其他地方复制的,没有更新.
The details of this read as though you would be setting the window state, but I suspect that this is because they've been copied from somewhere else and not updated.
这篇关于HWND 是否可见?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文