Windows programming

Moderators: None (Apply to moderate this forum)
Number of threads: 3711
Number of posts: 9173

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Edit Report
Finding WindowFromPoint Posted by Green Flame on 7 Dec 2000 at 3:32 PM
I want to find a window handle (HWND) when all I have is a mouse point (screen coordinates). I've managed to do pretty well so far but have come into a problem. I can't seem to get a handle on any static text windows.<br>
<br>
I'm using WindowFromPoint and ChildWindowFromPoint to get the window handles as of now. I'm basically trying to emulate Microsoft's Spy utility (The Window Finder part anyway).<br>
<br>
If anyone knows how I can get a handle on static text windows please let me know. I'm begging, really!


Edit Report
Re: Finding WindowFromPoint Posted by Sephiroth2 on 17 Dec 2000 at 3:29 PM
I guess you have to do it the hard way, by using EnumWindows and EnumChildWindows and comparing the window corners against the point.<br>






 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.