🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to get a window's coordinates?

#4027
From: Helmut Giese
Date: Tue, 04 Apr 2006 20:00
24 lines
1905 bytes
On Tue, 4 Apr 2006 10:47:59 -0700, "Remy Lebeau \(TeamB\)"
<no.spam@no.spam.com> wrote:

>
>"Helmut Giese" <hgiese@ratiosoft.com> wrote in message
>news:44323f3e.1124992@forums.borland.com...
>
>> I am interested in the coordinates of a menu once it is posted.
>
>You can't get the HWND of a menu.  That is private to the OS's internals.

Hi Gambit,
don't make me nervous, please :)

I found the function GetMenuItemRect which looks promising - though I
have to admit that I am still fighting to come to grips with menus,
and it's not clear who is going to win. 

Hm, I want to add some kind of tooltip to any menu a user selects, so
I'd better find out where the currently active menu is situated on the
screen. 
Do you thing there is any possibilty to achieve what I'm after?
Thanks and best regards
Helmut Giese
Technical Details
Message-ID: <4432cef6.24197000@forums.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!news.glorb.com!tudelft.nl!txtfeed1.tudelft.nl!multikabel.net!feed10.multikabel.net!feeder3.cambrium.nl!feed.tweaknews.nl!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <44319b6a.32745546@forums.borland.com> <4431a703$1@newsgroups.borland.com> <44323f3e.1124992@forums.borland.com> <4432b151@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 20:00:43 GMT
Message-ID: <4432cef6.24197000@forums.borland.com>
References: <44319b6a.32745546@forums.borland.com> <4431a703$1@newsgroups.borland.com> <44323f3e.1124992@forums.borland.com> <4432b151@newsgroups.borland.com>
X-Newsreader: Forte Free Agent 1.21/32.243
NNTP-Posting-Host: 141.51.159.134
X-Trace: newsgroups.borland.com 1144180705 141.51.159.134 (4 Apr 2006 12:58:25 -0700)
Lines: 24
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!news.glorb.com!tudelft.nl!txtfeed1.tudelft.nl!multikabel.net!feed10.multikabel.net!feeder3.cambrium.nl!feed.tweaknews.nl!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail