询问者
为什么子窗口一直无法获得键盘事件的焦点

问题
-
我的程序是这样的:主窗口fm1,生成一个模态子窗口fm2, Form2^fm2=gcnew Form2; fm2->ShowDialog(this);在fm2中生成一个子窗口fm3,然后关闭fm2,要求fm3是fm1的子窗口,Form3^ fm3=gcnew Form3;fm3->MdiParent=this->Owner;fm3->Show();,可是这时的fm3无论如何都得不到键盘事件的焦点,一直是fm1在接收键盘消息,为什么啊,我觉得也许是我这么做不合理,可是哪里不合理呢,请高手指教
- 已移动 Sheng Jiang 蒋晟Moderator 2009年11月18日 20:05 Windows表单类库问题 (发件人:Visual C++)
全部回复
-
请提供相关的实例代码,你做一小一点的例子,让我们看到你的场景。
Best regards,
Riquel
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.