🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to get a window's coordinates?

#4021
From: Remy Lebeau (TeamB)
Date: Mon, 03 Apr 2006 22:43
12 lines
1185 bytes
"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.


Gambit
Technical Details
Message-ID: <4431a703$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <44319b6a.32745546@forums.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: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <44319b6a.32745546@forums.borland.com>
Subject: Re: How to get a window's coordinates?
Date: Mon, 3 Apr 2006 15:43:11 -0700
Lines: 14
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <4431a703$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1144104707 68.69.17.41 (3 Apr 2006 15:51:47 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail