开发者

How do I know if HWND is desktop itself?

开发者 https://www.devze.com 2022-12-17 12:20 出处:网络
I use GetForegroundWindow to get the foreground window handle but if there is no window, then it returns the HWND to the desktop. How do 开发者_如何学JAVAI know if the HWND is the desktop?Compare it w

I use GetForegroundWindow to get the foreground window handle but if there is no window, then it returns the HWND to the desktop. How do 开发者_如何学JAVAI know if the HWND is the desktop?


Compare it with the result of calling GetDesktopWindow().


Compare the handle with the handle returned by GetDesktopWindow().

0

精彩评论

暂无评论...
验证码 换一张
取 消