如何在子对话框中使用编辑控件? [英] How to use edit control in a child dialog?

查看:73
本文介绍了如何在子对话框中使用编辑控件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我所有的朋友!



最近,我写了一个mariaDB客户端界面。

弹出窗口中有一个子对话框对话框。

我发现编辑控件无法在子对话框中使用。

Plz帮我解决了这个问题!



非常感谢!

祝你有愉快的一天!

Hi,all my friends!

Recently,I written a mariaDB client interface.
There was a child dialog in a popup dialog.
I found the edit control could not be used in child dialog.
Plz help me solve this problem!

Thank you very much!
Have a nice day!

推荐答案

可以在子对话框中使用编辑控件。我怀疑你有另一个问题,为什么它不起作用。我建议用你的问题发布相关代码,也许人们可以发现你的实际问题。



你可能遇到过这个问题:

http://support.microsoft.com/kb/230587 [ ^ ]



基本上,子窗口这是编辑控件的父级,它拦截编辑控件需要使用的消息。您可以更改此行为,但使用不同的样式而不是更改WS_CHILD的行为可能更容易。
An edit control CAN be used in a child dialog. I suspect you have another problem and that why it's not working. I'd suggest posting relevant code with your question and maybe people may be able to spot your actual problem.

You're probably experiencing this issue:
http://support.microsoft.com/kb/230587[^]

Basically, the child window that is the parent to your edit control is intercepting the messages that the edit control needs in order to be used. You can change this behavior, but it's probably easier to use a different style instead of changing the behavior of WS_CHILD.


这篇关于如何在子对话框中使用编辑控件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆