🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

How to get parent menu of sub menu??

#13335
From: Marc
Date: Thu, 16 Oct 2003 20:25
14 lines
1268 bytes
Hi

I have a system wide hook(SetWindowsHookEx) that detects menus with class(#32768).

Is it possible to detect if a menu is a sub-menu of another?

I currently have the handle(HWND) to the menu I am interested in
but cannot seem to find a way to Identify if this menu has a parent menu.

Does anyone have any suggestions on how to get the parent menu 
of a sub menu?

Marc
Technical Details
Message-ID: <3f8efec0$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,e3f721bd1049e517,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-10-16 13:40:15 PST
From: "Marc" <bukwheat@axess.com>
Sender: "Marc" <bukwheat@axess.com>
Reply-To: "Marc" <bukwheat@axess.com>
Subject: 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
NNTP-Posting-Host: 207.105.83.66
Message-ID: <3f8efec0$1@newsgroups.borland.com>
Date: 16 Oct 2003 13:25:36 -0700
X-Trace: newsgroups.borland.com 1066335936 207.105.83.66 (16 Oct 2003 13:25:36 -0700)
Lines: 14
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail