Click here to Skip to main content
15,900,906 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
So I've got an MFC based Dialog box project in VC6. In the main window I have a tab control and that I've specified to have the extended style Control Parent. Then I have several child dialog boxes that I display depending on which tab is selected. To make tabbing through all the controls work (e.g. from the tab control into the child dialog box) I've set the child dialog boxes to have the Control Parent style as well. This works as far as allowing the tabs to cycle through everything shown on screen like it's one big dialog box, however, when I'm in the child dialog box and any button has focus, hitting return does nothing. I have to hit the space bar to make the button think I've clicked on it. Normally as I tab through things I can hit the enter key to make a button click but it seems like setting the style Control Parent changes something in the default behavior.

Am I doing something wrong? Is there a way to be able to hit enter in the child dialog box and have it work?
Posted

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