Now, i am programing my program with BCMenu class.
this program should be made in each language type. and then i have used SetMenuText function for changing menu string.
but i couldn't change upper menu string.
> some code
m_menu.SetMenuText(0,"FILE(&F)"); <-- it didn't change
m_menu.SetMenuText(ID_PHONE_CONNECT,"CONNECT", MF_BYCOMMAND); <-- it changed.
How can change upper menu string ?
please help me.. ..
i have the following problem - i am using BCMenu in an MDI aplication but when there is a document open menu icons are not visualised. I tracked the problem to the fact that CMainFrame::OnInitMenuPopup is recieving a CTempMenu instead of BCMenu object.
Does anyone had the same problem and what can be done to correct this?
I am confused about how to get a SubBCMenu. To get a CMenu, you can use the functions:
CMenu* GetSubMenu (int nPos);
However, you cannot do the same for BCMenu: BCMenu* GetSubBCMenu(char* lpszSubMenuName);
So, why is there no way to get a sub menu by index as well? Having a dependency on the text of the menu seems not like a good design idea.
I need to dynamically change the text of submenus, and if I get a CMenu and change the text, it looks ugly. So I have to use the BCMenu function, but I'm unable to get the BCMenu because of lack of an easy functions to use.
actually i want to create a popup menu at click of my toolbar button.
i dont know how to create the the popup menu with different menuitems at run time.
if anyone has the idea and code please help me.
thanx a lot in advance
Here is a very basic sample program on how to get this functionality to work on a toolbar.
See the TMenu section on the following web page.
The details of how to get it to work are very similar to the details described about
how to get the Cool Owner Drawn Menus with Bitmaps to work. There are some differences
in the creation of the menus and additional code when you create the toolbar.