Article View: borland.public.cppbuilder.nativeapi
Article #4022Re: How to get a window's coordinates?
From: Helmut Giese
Date: Tue, 04 Apr 2006 09:44
Date: Tue, 04 Apr 2006 09:44
19 lines
1550 bytes
1550 bytes
On Mon, 3 Apr 2006 15:43:11 -0700, "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> wrote: > >"Helmut Giese" <hgiese@ratiosoft.com> wrote in message >news:44319b6a.32745546@forums.borland.com... > >> Given a window's HWND, how do I obtain its current >> position/coordinates on the screen? > >Use the GetWindowRect() function. If the HWND is a child of another HWND, >then you need to also use ClientToScreen() or MapWindowPoints() as well. Hi Gambit, thanks a lot. Don't know what I was looking at in the help last night but I didn't see it. Hm, child window? I am interested in the coordinates of a menu once it is posted. Well, I'll find out if it is a child or not. Thanks and best regards Helmut Giese
Technical Details
Message-ID:
<44323f3e.1124992@forums.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<44319b6a.32745546@forums.borland.com> <4431a703$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,4578913d357812e3 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: hgiese@ratiosoft.com (Helmut Giese) Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: How to get a window's coordinates? Date: Tue, 04 Apr 2006 09:44:52 GMT Message-ID: <44323f3e.1124992@forums.borland.com> References: <44319b6a.32745546@forums.borland.com> <4431a703$1@newsgroups.borland.com> X-Newsreader: Forte Free Agent 1.11/32.235 NNTP-Posting-Host: 84.138.29.118 X-Trace: newsgroups.borland.com 1144146672 84.138.29.118 (4 Apr 2006 03:31:12 -0700) Lines: 19 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail