Click here to Skip to main content
15,891,777 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
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!
Posted
Comments
Sergey Alexandrovich Kryukov 5-Dec-13 22:08pm    
How did you find out that it could not be used. If was so, it would make an absurd question: "A is impossible, how to do A?" :-).
—SA

1 solution

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.
 
Share this answer
 
v2
Comments
aolin.wang 6-Dec-13 0:14am    
hi!

when the style of the dialog was child,Characters could not be written in edit control.
when the style of the dialog was changed to popup,Characters could be written in edit control.

thank you!
Albert Holguin 6-Dec-13 11:15am    
Updated the solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900