Setting default button programmatically
Posted on 1998-12-29
During program execution, when a certain edit box gets the focus in a dialog, I want that to make a specific button become the default button, so that if the user presses ENTER while the edit box has focus, the button is pressed. I don't want this button to be the default button to start out with, just when this edit box is in focus. Then the default button can get changed back to the original one, or not - doesn't really matter.