Windows MDI and accelerator transfer between parent and child windows

I have an MDI application with a menu bar and one child window. Accelerators are used in the child window (& sign before the enu element name) When the MDI key is pressed on the left of Alt + another, the parent menu bar is activated, and the child window cannot use accelerators.

I need to have a menu bar in the parent window, but you want to disable accelerators for it.

Is there any way to do this?

Relations Mariusz

+4
source share
1 answer

If all this fails, you can always transfer accelerator messages from the main window and transfer them to the focused child window. You can use WndProcs for this. Hack it more, but you may not be able to get past the capture of the main menu by pressing the accelerator. Try a look at these Example1 , Example2

+2
source

All Articles