Focus on task panel and not inserted dialog? |
Post Reply |
Author | |
rdhd
Senior Member Joined: 13 August 2007 Location: United States Status: Offline Points: 886 |
Post Options
Thanks(0)
Posted: 15 May 2008 at 9:37am |
I have a task panel that we add dialogs to. The dialogs have controls that have accelerator keys assigned to them in the resource file. When I first insert the dialog, all the keys work as expected.
If I click on the dialog but not on a control, the keys quit working.
If I click on a control in the dialog, the keys start working again (until I click on the dialog but not on a control).
I have found that when I click on the dialog but not on a control in the dialog, when a keystroke is processed by the frame, the hWnd for the message is the task panel. Hence when walking the pretranslate tree, the dialog is not involved.
So it appears the task panel has taken focus when I click on a dialog inserted into the task panel.
Why does the task panel become the target for the key strokes and how can I prevent this from happening, or how can I get the taskpanel to route the key events back to the dialog?
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |