🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to get a window's coordinates?

#3941
From: Bob Gonder
Date: Thu, 06 Apr 2006 01:25
17 lines
1824 bytes
Helmut Giese wrote:

>>     if( (menuitem = MenuItemFromPoint( hwnd, hmenu, point )) != -1 )
>
>thanks for the idea, but my problem is just that I don't have a
>'hmenu' (and neither the hwnd to go with it).

Well. the hmenu might be a problem, but you go on to say you do have
the hwnd...

>I have some window managed by Tk (it's a window because I can get its
>hwnd).

>A bit weird. 

Might be that Tk emulates menus in a portable (Non-MS) way.
If so, then looking at the Tk source might be in your future.
Technical Details
Message-ID: <4pq832t7u4g1kqtlt0rk067pjpffcfk98f@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.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
References: <44319b6a.32745546@forums.borland.com> <4431a703$1@newsgroups.borland.com> <44323f3e.1124992@forums.borland.com> <4432b151@newsgroups.borland.com> <4432cef6.24197000@forums.borland.com> <4432eb44@newsgroups.borland.com> <4433e164.1830859@forums.borland.com> <3j1832ltm893aucqnf8achkihbmdao0k27@4ax.com> <44341c9e.17062687@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: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: How to get a window's coordinates?
Date: Wed, 05 Apr 2006 18:25:46 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <4pq832t7u4g1kqtlt0rk067pjpffcfk98f@4ax.com>
References: <44319b6a.32745546@forums.borland.com> <4431a703$1@newsgroups.borland.com> <44323f3e.1124992@forums.borland.com> <4432b151@newsgroups.borland.com> <4432cef6.24197000@forums.borland.com> <4432eb44@newsgroups.borland.com> <4433e164.1830859@forums.borland.com> <3j1832ltm893aucqnf8achkihbmdao0k27@4ax.com> <44341c9e.17062687@forums.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 4.246.207.127
X-Trace: newsgroups.borland.com 1144286741 4.246.207.127 (5 Apr 2006 18:25:41 -0700)
Lines: 20
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.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