Re: Menu Not Available from Keyboard
From: Jonathan Wood (jwood_at_softcircuits.com)
Date: 01/03/05
- Next message: suresh: "XP Theme Version Info using vc++"
- Previous message: Ririko Horvath: "Re: Link error LNK2001"
- Maybe in reply to: Joseph M. Newcomer: "Re: Menu Not Available from Keyboard"
- Next in thread: Frank Hickman [MVP]: "Re: Menu Not Available from Keyboard"
- Reply: Frank Hickman [MVP]: "Re: Menu Not Available from Keyboard"
- Messages sorted by: [ date ] [ thread ]
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 > >
- Next message: suresh: "XP Theme Version Info using vc++"
- Previous message: Ririko Horvath: "Re: Link error LNK2001"
- Maybe in reply to: Joseph M. Newcomer: "Re: Menu Not Available from Keyboard"
- Next in thread: Frank Hickman [MVP]: "Re: Menu Not Available from Keyboard"
- Reply: Frank Hickman [MVP]: "Re: Menu Not Available from Keyboard"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|