comp.os.mswindows.programmer.tools.mfc
  Home FAQ Contact Sign in
comp.os.mswindows.programmer.tools.mfc only
 
Advanced search
March 2008
motuwethfrsasuw
     12 9
3456789 10
10111213141516 11
17181920212223 12
24252627282930 13
31       14
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007    
total
comp.os ... tools.mfc Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  Reliable way to get window underneath mine?         


Author: Somebody
Date: Mar 16, 2008 00:07

What is a reliable way to get the window underneath mine?

Say that my window is "Window A"... "Window A" is being dragged around the
screen by its title bar. The mouse cursor is at x,y. I need to know if I can
drop it on the window thats at x,y (not counting "Window A"). So I need to
get this window handle somehow. WindowFromPoint() obviously gets "Window A".
I'd rather not enumerate all the windows since that seems like a performance
issue. Thanks.
1 Comment