Article View: borland.public.cppbuilder.nativeapi
Article #3942Re: How to get a window's coordinates?
From: Helmut Giese
Date: Thu, 06 Apr 2006 09:15
Date: Thu, 06 Apr 2006 09:15
29 lines
2168 bytes
2168 bytes
On Wed, 05 Apr 2006 18:25:46 -0700, Bob Gonder <notbg@notmindspring.invalid> wrote: Hi Bob, >>> 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) and it doesn't _have_ a menu either, so I don't relly know what to do with it. > >>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. Yes, that's the nice thing about open source. I didn't do it so far, because modifying Tk isn't all that attractive: - I could break some other code and - I would have to apply those patches to every new version For the moment I let Windows win :( Best regards Helmut Giese
Technical Details
Message-ID:
<4434db07.2479430@forums.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.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> <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>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: Thu, 06 Apr 2006 09:15:49 GMT Message-ID: <4434db07.2479430@forums.borland.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> X-Newsreader: Forte Free Agent 1.11/32.235 NNTP-Posting-Host: 84.138.53.39 X-Trace: newsgroups.borland.com 1144322272 84.138.53.39 (6 Apr 2006 04:17:52 -0700) Lines: 29 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.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