🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to get parent menu of sub menu??

#13358
From: Marc
Date: Fri, 17 Oct 2003 13:50
29 lines
1766 bytes
Hi

I had tried get parent, in the case of the Right-Click desktop 
the sub menu returns the handle to the desktop and not the 
calling menu.

Also this may have worked, because their is a GetMenu() function that returns a HMENU from a HWND the function returns 
NULL if not a menu.  Also their is a IsMenu() function that 
return true or false if Hmenu is valid or not.

Thanks for the ideas anyways
Marc



"Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> wrote:
>
>"Bob Gonder" <notbg@notmindspring.invalid> wrote in message
>news:j9fuovor136t3v9bteu3g60qr4bad44kqr@4ax.com...
>
>> Does GetParent() do anything for this?
>
>GetParent() only works for windows, not menus.
>
>
>Gambit
>
>
Technical Details
Message-ID: <3f8ff395$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f8efec0$1@newsgroups.borland.com> <3f8f0a1e$1@newsgroups.borland.com> <3f8f2738$1@newsgroups.borland.com> <j9fuovor136t3v9bteu3g60qr4bad44kqr@4ax.com> <3f8f3f26$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,e3f721bd1049e517
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-10-17 07:10:36 PST
From: "Marc" <Bukwheat@axess.com>
Sender: "Marc" <Bukwheat@axess.com>
Reply-To: "Marc" <Bukwheat@axess.com>
Subject: Re: How to get parent menu of sub menu??
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 138.11.254.204     
X-Forwarded-For: 192.168.152.223
References: <3f8efec0$1@newsgroups.borland.com> <3f8f0a1e$1@newsgroups.borland.com> <3f8f2738$1@newsgroups.borland.com> <j9fuovor136t3v9bteu3g60qr4bad44kqr@4ax.com> <3f8f3f26$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <3f8ff395$1@newsgroups.borland.com>
Date: 17 Oct 2003 06:50:13 -0700
X-Trace: newsgroups.borland.com 1066398613 207.105.83.66 (17 Oct 2003 06:50:13 -0700)
Lines: 30
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail