Re: Menu Not Available from Keyboard

From: Jonathan Wood (jwood_at_softcircuits.com)
Date: 01/03/05


Date: Mon, 3 Jan 2005 10:38:17 -0700

Thanks to those who had suggestions with this problem. I'm still trying to
fully resolve it.

I used the technique in article Q117500 to override TranslateAccelerator and
calling ::TranslateAccelerator using the HACCEL handle and window handle
from my main window. The result is that menu accelerators now work from my
dialog window. However, the shortcuts (such as Alt+F for the File menu)
still do not work. I'm still looking for help on this if anyone here
understands this a little better than I.

Again, I have a child modeless dialog box, and I want to be able to use
shortcut keys to access the menus on my main window when the child modeless
dialog box has the focus.

Thanks!

-- 
Jonathan Wood
SoftCircuits
http://www.softcircuits.com
Available for consulting: http://www.softcircuits.com/jwood/resume.htm
"Jonathan Wood" <jwood@softcircuits.com> wrote in message
news:u6Ts8ng7EHA.2552@TK2MSFTNGP09.phx.gbl...
> I have a modeless dialog box (contained in some dockable windows in an MDI
> app).
>
> Mostly, it's working okay but when a control in the dialog box has the
> focus, the main window menu is unavailable by keyboard (Alt+F, etc. have
no
> effect).
>
> I've modelled my code after some other applications and notice the menus
in
> these applications work even when the dialogs have the focus. Does anyone
> have any suggestions on where I'd look to determine how to keep my menus
> working?
>
> Thanks!
>
> -- 
> Jonathan Wood
> SoftCircuits
> http://www.softcircuits.com
> Available for consulting: http://www.softcircuits.com/jwood/resume.htm
>
>


Relevant Pages

  • Re: Menu Not Available from Keyboard
    ... template and that the menu keys still work on the main window when a control ... > I just created a test project that has a dialog bar and can not seem to ... > "Jonathan Wood" wrote in message ... >> shortcut keys to access the menus on my main window when the child ...
    (microsoft.public.vc.mfc)
  • Re: French-English Lexical of XP menus and terminology
    ... Express and Internet Explorer menus? ... document window 44. ...
    (microsoft.public.windowsxp.general)
  • Re: Windows Media Tools Corruption
    ... weird if it also does that in WMP9 menus too, ... That should check system files, and restore any which appear damaged. ... in the command window type ...
    (microsoft.public.windowsmedia)
  • Re: Windows Media Tools Corruption
    ... Meant to ask - how do I check what system languages are installed on the PC? ... weird if it also does that in WMP9 menus too, ... in the command window type ... Digital Media MVP: 2004-2008 ...
    (microsoft.public.windowsmedia)
  • Re: help: really wide menus
    ... Jolly Roger wrote: ... bookmarks and window menus in Safari). ... your bookmarks so the titles aren't so long. ...
    (comp.sys.mac.system)

Loading