how to get desktop window handle?

  • Thread starter Thread starter harvie wang
  • Start date Start date
H

harvie wang

Hi,

I use API GetDesktopWindow to get desktop window handle and compare with
WindowFromPoint(x,y) to get window handle.
GetDesktopWindow return 65556
WindowFromPoint return 65700
but I use apy++ to get desktop window handle, it return 100A2 or 1000A4
why?


Best Wish,

Harvie

2006-6-27
 
Hello matt,

thanks very much!
but why the GetDesktopWindow return do not equal to WindowFromPoint?
 
harvie said:
Hello matt,

thanks very much!
but why the GetDesktopWindow return do not equal to WindowFromPoint?

Hi Harvie,

You may or may not realise that the desktop window isn't what you see on
your screen, when you're looking at your desktop icons. You're seeing a
listview, which fills the desktop window.
 
Hello Tom,

Thanks!
It's right :)
I use spy++ to find window, got "desktop window" class is listview.
Then how can i know the mouse click window is a desktop window or i click
the place is not any other window except the listview.
I want to know use click the place can see the wallpaper (desktop window).
 
Back
Top