By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,915 Members | 1,331 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,915 IT Pros & Developers. It's quick & easy.

How to get parent menu of sub menu??

P: n/a
Hi

I have a system wide hook 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?

The menu I am using to test with is the Right-Click on the desktop menu
which has a sub menu called "Arrange Icons"

Marc
Jul 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On 16 Oct 2003 13:30:13 -0700, Bu******@axess.com (Marc) wrote in
comp.lang.c++:
Hi

I have a system wide hook 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?

The menu I am using to test with is the Right-Click on the desktop menu
which has a sub menu called "Arrange Icons"

Marc


You don't have a C++ language question, you have a Windows API
question which has nothing to do with the language and is off-topic
here.

You need to ask in a Windows programming group, like
news:comp.os.ms-windows.programmer.* or one of Microsoft's support
groups in the news:microsoft.public.vc.* family.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++ ftp://snurse-l.org/pub/acllc-c++/faq
Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.