🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to get a window's coordinates?

#3950
From: Bob Gonder
Date: Thu, 06 Apr 2006 21:52
26 lines
2337 bytes
Helmut Giese wrote:

>On Wed, 05 Apr 2006 18:25:46 -0700, Bob Gonder
>
>>>>     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 _a_ hwnd but it isn't a menu (IsMenu returns 0)

That functions doesn't take a menu hwnd, it takes the hwnd of the form
that has the menu. (But you still don't have the hmenu, so still can't
use it)

>Yes, that's the nice thing about open source. I didn't do it so far,
>because modifying Tk isn't all that attractive:

You might not need to modify Tk. It might be sufficient to know *how*
Tk produces the menu effect so you can knowledgabley do your thing.

>- I would have to apply those patches to every new version

Or submit them for inclusion. It is OS after all.
Technical Details
Message-ID: <pn1b32h0ptugnt7604b24ou21h6acbanq9@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> <4pq832t7u4g1kqtlt0rk067pjpffcfk98f@4ax.com> <4434db07.2479430@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: Thu, 06 Apr 2006 14:52:43 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <pn1b32h0ptugnt7604b24ou21h6acbanq9@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> <4pq832t7u4g1kqtlt0rk067pjpffcfk98f@4ax.com> <4434db07.2479430@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.42
X-Trace: newsgroups.borland.com 1144360360 4.246.207.42 (6 Apr 2006 14:52:40 -0700)
Lines: 28
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