Dear Sir,
My application program is multi-language, and the menu texts are set at runtime.
Before using Prof-UIS, I used the GetMenu() method from the MainFrame window, walked the menu structure and changed the text labels with the ModifyMenu() method, and this worked perfectly.
Now that I’m using Prof-UIS menu inside a CExtMenuControlBar, the GetMenu() method gives an unusable menu structure.
I guess that the best method is to use the CExtCmdItem elements and change their properties, but two problems remain :
- 1. The menu is not updated after a change of the m_menuText property in the CExtCmdItem : how can I do it ?
- 2. The menu title can’t be accessed through CextCmdItem element since there is no cmd ID (for instance, if I have a "File" menu in the menu bar, with "New", "Open", "Save"... entries, I can’t access and change the "File" text) : how can I do it ?
I suppose that it would be feasible to subclass the CExtMenuControlBar and intercept all text labels while it constructs its own menus. In your opinion, what is the best method to solve my two problems ?
Thanks in advance, and Best Regards,
Christophe Guibert