1 Mar 2004 21:14
Re: CCommandBarCtrl menu underlining won't turn on
--- In wtl@..., "Menningen, Kevin" <kmenningen <at> n...> wrote: > Hi everyone, > > A couple of issues with menu underlining: > > 1. It used to work that if you press the Alt key the menu underlining would > appear while Alt was pressed. Does anyone know what you're supposed to do > with CCommandBarCtrl to turn on menu underlining while the Alt key is > pressed down? It's related to member variable m_bShowKeyboardCues and > m_bUseKeyboardCues somehow... You shouldn't have to do anything. The CCommandBarCtrl is supposed to act just like a standard menu would act given your system's current settings. Either the menu char is always underlined or its underlined when VK_MENU is pressed. If you want to force menu char underlining always, I believe setting m_bUseKeyboardCues to false and calling ShowKeyboardCues(true) will do it. This will have to be done after WM_CREATE and after each WM_SETTINGCHANGE received by the command bar. > > 2. Office 2003 seems to underline menu letters always now. Does anyone know > if this is what Microsoft recommends now? i.e. was hiding the(Continue reading)
RSS Feed