Prev: "Failed to create empty document" or the different between WM5 &
Next: MDI App: start 2 DocTemplates in CMyApp::InitInstance
From: nexolite on 26 Mar 2010 10:07 Hi, How can I display a CMFCMenuBar as a context menu ? Thanks.
From: Tom Serface on 26 Mar 2010 12:19 Not sure why you'd want to do this? Typically you would just create another menu in the resources for a context menu. You could grab the items off of the menu bar and copy them to a new menu to use at runtime... That said, you could also just use the menu resource that the main menu uses to create the drop down menu as well. I'm pretty sure that would work directly. Just load it like you would any other context menu resource in the context menu handler. Tom "nexolite" <nexolite(a)discussions.microsoft.com> wrote in message news:D3D846C6-27B7-48CA-9FE4-F10C293A154B(a)microsoft.com... > Hi, > > How can I display a CMFCMenuBar as a context menu ? > > Thanks.
From: nexolite on 29 Mar 2010 01:23
Well I want to do this to get menu's skin same as the normal menu(as provided by CMFCMenuBar).. "Tom Serface" wrote: > Not sure why you'd want to do this? Typically you would just create another > menu in the resources for a context menu. You could grab the items off of > the menu bar and copy them to a new menu to use at runtime... > > That said, you could also just use the menu resource that the main menu uses > to create the drop down menu as well. I'm pretty sure that would work > directly. Just load it like you would any other context menu resource in > the context menu handler. > > Tom > > "nexolite" <nexolite(a)discussions.microsoft.com> wrote in message > news:D3D846C6-27B7-48CA-9FE4-F10C293A154B(a)microsoft.com... > > Hi, > > > > How can I display a CMFCMenuBar as a context menu ? > > > > Thanks. > > . > |