c++ - 我如何知道 HWND 是否是桌面本身?

标签 c++ c windows winapi

我使用 GetForegroundWindow 获取前景窗口句柄,但如果没有窗口,则它会将 HWND 返回到桌面。我如何知道 HWND 是否为桌面?

最佳答案

将其与调用 GetDesktopWindow 的结果进行比较().

关于c++ - 我如何知道 HWND 是否是桌面本身?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2111480/

相关文章:

c++ - Visual Studio const_iterator 分配错误

python - Python 导演类中的 Swig 异常

c - 缓冲区刷新不适用于 printf 函数

c++ - 在不使用 bitset 的情况下如何知道 C++ 中的位状态?

java - io异常 : a required privilege is not held by client while writing in file in java

c# - 如何在 C# Visual Studio 2015 中制作可移植程序?

c++ - C++中的指针变量只指向堆中的变量?

c - 数独布局与 malloc 崩溃

php - 在 wampserver 2.2 上安装 php_imagick.dll PHP 扩展

c++ - 使用 C++ 智能指针用父指针构建树