Article View: borland.public.cppbuilder.nativeapi
Article #13313Re: How to get parent menu of sub menu??
From: Marc
Date: Mon, 20 Oct 2003 13:41
Date: Mon, 20 Oct 2003 13:41
58 lines
3515 bytes
3515 bytes
Hello Gambit Thanks for your help, it is greatly appreciated. What I am trying to do is manage the location of menus. For the main menu what I do, is trap the WM_create call verify if its a menu, and I redirect the menu in the location I desire. When sub menus come into play, I am trying to mimic the display of the sub menu as if it were on the edge of the desktop, therefore it will be displayed on the left of the main menu and NOT the right, like it normally would. To see the displaying of menus, right-click on your desktop so that the popup menu is near the right edge of the desktop and then open any one of the sub menus. The menu will appear on the Left side of the menu instead of the right. That is what I am attempting to acheive. I will continue to try to find some sort of solution for this. Thanks Marc "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> wrote: > >"Marc" <Bukwheat@axess.com> wrote in message >news:3f9049a2$1@newsgroups.borland.com... > >> Here is a new avenue I am investigating. Decause I am already >> a system wide hook, I can trap the WM_MENUSELCT and >> see if the menu item I am selecting is a submenu and get the >> HMENU off of the Parent menu > >You still don't have access to the parent menu from that message. You would >have to keep track of every item that is being selected, and then if you >receive a WM_INITMENUPOPUP message, you will already have the HMENU for the >menu item who is about to display a submenu, and can store that HMENU >accordingly for later use. > >> keep this HMENU in a var and when the menu is actually created >> I can trap that to see if the HMENU matches the one in my var >> and then manipulate it as a child of the parent menu. > >What does that have to do is determining the parent menu of a given item >when it is actually clicked on? Isn't that what you were originally asking >for? What you propose will not work, because the HMENU of the item you >actually click on will not match the HMENU of the submenu itself which you >obtained when the submenu was being opened. > >I'm getting lost in what you are trying to actually accomplish. Please >start over and try to explain more details about what exactly you are trying >to do. Please provide an actual example. > > >Gambit > >
Technical Details
Message-ID:
<3f93e607$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp.abs.net!ash.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3f8efec0$1@newsgroups.borland.com> <3f8f0a1e$1@newsgroups.borland.com> <3f8f2738$1@newsgroups.borland.com> <j9fuovor136t3v9bteu3g60qr4bad44kqr@4ax.com> <3f8f3f26$1@newsgroups.borland.com> <3f8ff395$1@newsgroups.borland.com> <3f901bdc$1@newsgroups.borland.com> <3f9049a2$1@newsgroups.borland.com> <3f905898$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-20 06:47:55 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> <3f8ff395$1@newsgroups.borland.com> <3f901bdc$1@newsgroups.borland.com> <3f9049a2$1@newsgroups.borland.com> <3f905898$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <3f93e607$1@newsgroups.borland.com> Date: 20 Oct 2003 06:41:27 -0700 X-Trace: newsgroups.borland.com 1066657287 207.105.83.66 (20 Oct 2003 06:41:27 -0700) Lines: 59 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp.abs.net!ash.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail