🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to get a window's coordinates?

#3937
From: Bob Gonder
Date: Wed, 05 Apr 2006 18:11
15 lines
1630 bytes
Helmut Giese wrote:

>Well, needs some more experiments :(

You might try iterating the client window with

    for( point.x=10;  x<MaxClient.x-10;  point.x+=10 )
    for( point.y=10;  x<MaxClient.y-10;  point.y+=10 )

     if( (menuitem = MenuItemFromPoint( hwnd, hmenu, point )) != -1 )
    {	//We have menu item number menuitem at location point
	if( menuitem == menuitemwewant )
	{	// we have a point within the item we want
	}
    }
Technical Details
Message-ID: <3j1832ltm893aucqnf8achkihbmdao0k27@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!fu-berlin.de!newsfeed.cw.net!cw.net!news-FFM2.ecrc.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>

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 11:11:46 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <3j1832ltm893aucqnf8achkihbmdao0k27@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>
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.204.162
X-Trace: newsgroups.borland.com 1144260702 4.246.204.162 (5 Apr 2006 11:11:42 -0700)
Lines: 17
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!fu-berlin.de!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail