Opening a Menu on a default item
-
Hi, I'm using the TrackPopupMenu() MFC function and would like (i really have to do this for my customer ;)) this contextual menu to open up on a default subitem. I mean, assuming i have in my menu an item 1 and an item 2, and item 2 is a popup having an subitem1 and a subitem2, i need the whole menu to directly open on subitem2 selected for example. Any idea on how to solve this ? thanks ! :)
-
Hi, I'm using the TrackPopupMenu() MFC function and would like (i really have to do this for my customer ;)) this contextual menu to open up on a default subitem. I mean, assuming i have in my menu an item 1 and an item 2, and item 2 is a popup having an subitem1 and a subitem2, i need the whole menu to directly open on subitem2 selected for example. Any idea on how to solve this ? thanks ! :)
Do you want to show contextmenu on the item for example in the listctrl ?
WhiteSky
-
Do you want to show contextmenu on the item for example in the listctrl ?
WhiteSky
no i just want the contextmenu to openup on the desired subitem : a menu is a set of item and subitems, items having subitems beeing called popup because when passing on them, a sub-popup menu opens up. What i need is when i display my menu with TrackPopupMenu(), directly having a perticular sub-popmenu opened ;)
-
Hi, I'm using the TrackPopupMenu() MFC function and would like (i really have to do this for my customer ;)) this contextual menu to open up on a default subitem. I mean, assuming i have in my menu an item 1 and an item 2, and item 2 is a popup having an subitem1 and a subitem2, i need the whole menu to directly open on subitem2 selected for example. Any idea on how to solve this ? thanks ! :)
a function HiliteMenuItem() exists and its behaviour is exactly what i'm looking for BUT it only wroks for menus with a menubar, not for popup menus (contextual ones) someone has an idea ?
-
a function HiliteMenuItem() exists and its behaviour is exactly what i'm looking for BUT it only wroks for menus with a menubar, not for popup menus (contextual ones) someone has an idea ?
What about SetMenuItemInfo to set the state?
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
-
What about SetMenuItemInfo to set the state?
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
do you mean setting the state to MFS_HILITE ? i think it won't work as HiliteMenuItem() function must do the same.... and doesn't work for popup menus... but i'll try ;)