Hello I need to know if the cursor is hovering over the Desktop Window. I tried if(WindowFromPoint(point) == GetDeskTopWindow()) though this did not work. Perhaps there is something else I could try? Thanks Nic
Nic wrote: > Hello > > I need to know if the cursor is hovering over the Desktop Window. I tried > if(WindowFromPoint(point) == GetDeskTopWindow()) though this did not work. > Perhaps there is something else I could try? > > Thanks > Nic > > > What you see as the desktop window, strangely enough, is not the window that you get from GetDeskTopWindow(). That window is completely covered by several child windows. The one that you see is a SysListView32 which is a child of SHELLDLL_DefView which is in turn a child of a Progman. You can see this hierarchy using Spy++. -- Norm To reply, change domain to an adult feline.
"Norman Bullen" wrote in message news:09SdnYHvtJJWNQrVnZ2dnUVZ_uGdnZ2d@earthlink.com... > Nic wrote: > >> Hello >> >> I need to know if the cursor is hovering over the Desktop Window. I tried >> if(WindowFromPoint(point) == GetDeskTopWindow()) though this did not >> work. >> Perhaps there is something else I could try? >> >> Thanks >> Nic >> >> >> > What you see as the desktop window, strangely enough, is not the window > that you get from GetDeskTopWindow(). That window is completely covered by > several child windows. > > The one that you see is a SysListView32 which is a child of > SHELLDLL_DefView which is in turn a child of a Progman. > > You can see this hierarchy using Spy++. > > -- > Norm > > To reply, change domain to an adult feline. > Hello Many thanks for very usefull input. Nic