Roger Headrick | 1 Mar 2004 21:14
Picon
Favicon

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)

Menningen, Kevin | 1 Mar 2004 19:18

RE: CCommandBarCtrl menu underlining won't turn on

Yes it is a user setting, but I'm trying to get the proper messages to
CCommandBarCtrl so that it respects the setting. Standard apps will show the
underlines as soon as the Alt key is pressed.

--Kevin

-----Original Message-----
From: Pete Vidler [mailto:pvidler-WTLGroup4331@...] 
Sent: Monday, March 01, 2004 11:14 AM
To: wtl@...
Subject: Re: [wtl] CCommandBarCtrl menu underlining won't turn on

> 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 underlined
> characters just an "experiment" in Windows 2000 that Microsoft is now
> getting away from. Clearly if we're always supposed to underline then I
> don't have to worry about #1 above.

A good guideline is to always follow the operating system. Office 
changes its interface far too often and with too little need to bother 
keeping up with.

I don't know about your other issue, to be honest I don't tend to notice 
the underlining much... but isn't it a user setting (whether or not to 
show underlines all the time)?

-- Pete

 
(Continue reading)


Gmane