Advertisement

A question in Win32 API

Started by May 10, 2001 10:55 AM
1 comment, last by Xeno 23 years, 9 months ago
hi hi hi well , how can i get a window''s handle by my app mouse position , i mean , lets say i got some generic window app , now i got two more windows in the background , so how can i get their window handle by pointing over them with the mouse? Thanks

"Thats who you are. Thats what you could." ------------------------------ - Goblineye Entertainment ------------------------------

------------------------------- Goblineye Entertainment------------------------------

I know I''ve seen it before, but the first way that comes to mind is to use EnumChildWindows (starting with the desktop window) to enumerate all windows, bounds checking the mouse coordinates to each.


Jim Adams


Jim Adams
home.att.net/~rpgbook
Programming Role-Playing Games with DirectX 8
Advertisement
nevermind , i found the solution , WindowFromPoint()


"Thats who you are. Thats what you could."
------------------------------
- Goblineye Entertainment
------------------------------

------------------------------- Goblineye Entertainment------------------------------

This topic is closed to new replies.

Advertisement