If you had the coordinates of a certain widow, how would you get the handle?
If you had the coordinates of a certain widow, how would you get the handle?
By getting the handles for all windows and checking whether the co-ordinates match for each one in turn??
I thought of that, but I was just wondering if there was an easier approach. Oh well, guess that's good enough
Thanks anyways.
Would 'WindowFromPoint' be what you are after?:
POINT pt; //set to coords eg mouse coord
HWND hWnd=WindowFromPoint(&pt);
There's also a fn 'ChildWindowFromPoint' that may also be of interest.
Now THAT's what I'm talkin' 'bout. Thanks a heap, ken.