开发者

How do I know if HWND is desktop itself?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜