How to get parent menu of sub menu??

M

Marc

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
 
J

Jack Klein

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
or one of Microsoft's support
groups in the 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top