insert menu to view
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hello! How can I insert a new menu to the view-menubar. I tried
htest = MyMenu.Detach(); GetMenu()->InsertMenu(0, MF_BYPOSITION | MF_POPUP, (UINT)htest, "test");
in the OnCreate(...)->method of the CView and the CChildFrame, but I always got an assertion (for example in afxwin1.inl, line 1075) The same Code in CMainFrame worked (but it modified only the menu from CMainFrame, not from the View...) Alex