Article View: borland.public.cppbuilder.nativeapi
Article #4028Re: How to get a window's coordinates?
From: Remy Lebeau (TeamB)
Date: Tue, 04 Apr 2006 21:55
Date: Tue, 04 Apr 2006 21:55
31 lines
2232 bytes
2232 bytes
"Helmut Giese" <hgiese@ratiosoft.com> wrote in message news:4432cef6.24197000@forums.borland.com... > I found the function GetMenuItemRect which looks promising That will only tell you the screen coordinates of a particular menu item that is visible onscreen, but you still can't get the HWND for that item. Plus, the call requires you to already know ahead of time the HWND of the parent window and the HMENU of the menu that the item belongs to. > 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. What EXACTLY are you trying to accomplish in the first place? > Hm, I want to add some kind of tooltip to any menu a user selects, Menus don't have tooltips. They only have hints, which are not the same thing. > I'd better find out where the currently active menu is situated on the screen. There are no API functions for finding the active menu. The only way to know which menu is active is if you are displaying the menu yourself to begin with. If you are not, then there is nothing available to tell you which menu of which external application is active, if any. Gambit
Technical Details
Message-ID:
<4432eb44@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news3.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>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> <4431a703$1@newsgroups.borland.com> <44323f3e.1124992@forums.borland.com> <4432b151@newsgroups.borland.com> <4432cef6.24197000@forums.borland.com> Subject: Re: How to get a window's coordinates? Date: Tue, 4 Apr 2006 14:55:13 -0700 Lines: 33 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: <4432eb44@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1144187716 68.69.17.41 (4 Apr 2006 14:55:16 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news3.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