本文介绍了在大型机和子窗口中使用相同的加速键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有一个MDI应用程序.大型机有一个菜单和一些加速键.我正在从MFC dll激活MDI Child窗口.子级具有自己的菜单和加速键.主菜单和子窗口菜单中的菜单项之一具有相同的加速键.现在的问题是,尽管mdi子窗口处于焦点位置,但是加速键将转到主菜单. window.why发生这种情况.如何将加速键引导到活动窗口.请帮助我.

Hi,
I have an MDI application.The mainframe Has a menu and some accelerator keys.I am activating a MDI Child window from a MFC dll. The child has its own menu and accelerator keys.Here one of menu item in the both main menu and child window menu have the same accelerator key.Now the problem is though the mdi child window is in focus the accelarator key is going to the main window.why this is happening.How to guide the accelarator keys to the active window.please help me.

推荐答案


这篇关于在大型机和子窗口中使用相同的加速键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 16:11