开发者

MDI Windows and passing accelerators between a parent and a child window issue

开发者 https://www.devze.com 2022-12-16 06:33 出处:网络
I have MDI application with the menu strip and one child window. The child window uses accelerators (& sign before enu item name)

I have MDI application with the menu strip and one child window. The child window uses accelerators (& sign before enu item name) When left alt + other key pressed MDI parent's menu strip gets activated and child window is not able to use accelerators.

I have to have a menu strip within the parent window but want开发者_高级运维 to disable accelerators for it.

Is there any way to do it?

Regards Mariusz


If all else fails to achieve this you could always take the Accelerator messages from the main window and pass them to the focused child window. You could use the WndProcs to do this. Its more of a hack, but you might not be able to get past the capturing of the main menu of the accelerator pressing. Try looking at these Example1,Example2

0

精彩评论

暂无评论...
验证码 换一张
取 消