How to get parent menu of sub menu??

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Marc

    How to get parent menu of sub menu??

    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
  • Jack Klein

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

    On 16 Oct 2003 13:30:13 -0700, BukWheat@axess. com (Marc) wrote in
    comp.lang.c++:
    [color=blue]
    > 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[/color]

    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.program mer.* 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.l earn.c-c++ ftp://snurse-l.org/pub/acllc-c++/faq

    Comment

    Working...