Click here to Skip to main content
15,885,213 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
We have legacy MFC code. In application there was need to show menu bar in toolbar. So by subclassing CToolBarEx buttons are added to tool bar (using CToolBarCtrl::InsertButton).

Submenu is shown on OnLButtonDown of buttons. Effect of menu bar is perfectly fine, and it looks very similar to actual menu bar.

Now we also provide accessibility to be used with Speech Recognition tools like Narrator. When we click on button, it immediately shows sub menubar, and start reading submenu items without reading main menu button text. For example, if File menu contains New, Save, Narrator reads New or Save without reading File.

We tried different ways to solve problem, but nothing seems to work. Finally we decide to add CMenu in toolbar control.

Is it possible to add menu bar in tool bar? If yes, please suggest the way.

Kindly suggest what should be proper way to fix the problem.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900