Macuyiko
New member
- Joined
- Aug 10, 2007
- Messages
- 2
- Programming Experience
- 3-5
I've been having a problem with the WindowFromPoint API call (using VB.NET 2005) and was hoping somebody could help me.
When I try to get the handle of a window using WindowFromPoint, I always get the same handle, no matter where my cursor is located.
Strangely enough, I'm using a dual monitor setup, when the cursor is on my left monitor, it returns the handle of one of my (desktop-)toolbars (class name: BaseBar), when the cursor is on the right monitor, it returns a handle with class name: SysListView32. I tried removing my toolbars, thinking that might solve the problem, but now both left and right monitors return a (different) handle with class name: SysListView32.
Basically: it always returns the handle of the SysListView32 of the monitor the cursor is in, and Not the window the cursor is in (as it should).
P.S.: I've also tried disabling my second display - no dice.
Any ideas? Thanks in advance.
When I try to get the handle of a window using WindowFromPoint, I always get the same handle, no matter where my cursor is located.
Strangely enough, I'm using a dual monitor setup, when the cursor is on my left monitor, it returns the handle of one of my (desktop-)toolbars (class name: BaseBar), when the cursor is on the right monitor, it returns a handle with class name: SysListView32. I tried removing my toolbars, thinking that might solve the problem, but now both left and right monitors return a (different) handle with class name: SysListView32.
Basically: it always returns the handle of the SysListView32 of the monitor the cursor is in, and Not the window the cursor is in (as it should).
P.S.: I've also tried disabling my second display - no dice.
Any ideas? Thanks in advance.