Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why do dialogs close when pressing enter in edit box?

Status
Not open for further replies.

forlorn

Programmer
Dec 12, 2001
28
0
0
TR
...and how can i avoid it?

Thanks.
 
OK, i fixed it now.

If anyone is suffering from this problem too, check out
Also, there's another way, much simpler than this one,

1) Override OnInitDialog()
2) Add : SetDefID(-1)

This solution is posted by Mr.Hao Xu in reply to that solution on the link above. So read the comments too.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top