H
harvie wang
Hi,
I create a system mouse hook, to get mouse position and click events.
use GetDesktopWiindow and WindowFromPoint(x,y) to get window handle in my
hook proc.
Click mouse on desktop window and print the window handle which i got in
hook proc.
GetDesktopwindow() == 65557;
WindowFromPoint(x,y) == 65700;
but when i use spy++ to get the desktop window handle, it's return 0x100A4
or 0x100A2.
what's matter?
best wish,
harvie
2006-6-2
I create a system mouse hook, to get mouse position and click events.
use GetDesktopWiindow and WindowFromPoint(x,y) to get window handle in my
hook proc.
Click mouse on desktop window and print the window handle which i got in
hook proc.
GetDesktopwindow() == 65557;
WindowFromPoint(x,y) == 65700;
but when i use spy++ to get the desktop window handle, it's return 0x100A4
or 0x100A2.
what's matter?
best wish,
harvie
2006-6-2