1-In my dialog mfc project, when I press enter dialog closed.
I have some Editbox and Button, I want that When I'm in Editbox and press enter it work like tab and when press enter on button it work like button click.
How can I do it?
2- I have a CheckBox button, I setfocus this object in initdialog, but when I run program, it isn't focused. Where is my mistake?