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.