🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #1162

Re: Given X,Y Find a Window

#1162
From: Ed Mulroy [TeamB]
Date: Thu, 18 Oct 2007 17:37
27 lines
1610 bytes
What do you mean by "simplifies"?  WindowFromPoint is pretty simple.

If your problem is that you don't want to use the POINT struture then use 
something like this:

-------------------
#include <windows.h>

HWND WindowFromPoint(long x, long y)
    {
    POINT p = { x, y };

    return ::WindowFromPoint(p);
    }
-------------------

.  Ed

> JD wrote in message
> news:471794e1$1@newsgroups.borland.com...
>
>> You mean, you want a function like WindowFromPoint()?
>
> Correct.
>
> Now that you phrased it that way, i know how to do it but
> I'm still hoping that there's an API that simplifies.
Technical Details
Message-ID: <471799c4$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <47179239$1@newsgroups.borland.com> <0p4fh35802q6oo9flf6d6l10pnb4mieaj3@4ax.com> <471794e1$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,e9d6cae71b9049b5
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Ed Mulroy [TeamB]" <dont_email_me@bitbuc.ket>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <47179239$1@newsgroups.borland.com> <0p4fh35802q6oo9flf6d6l10pnb4mieaj3@4ax.com> <471794e1$1@newsgroups.borland.com>
Subject: Re: Given X,Y  Find a Window
Date: Thu, 18 Oct 2007 13:37:10 -0400
Lines: 29
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 69.142.254.168
Message-ID: <471799c4$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1192729028 69.142.254.168 (18 Oct 2007 10:37:08 -0700)
X-Authenticated-User: edmulroy
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail