I have the following dialog box -
1. My outer dialog box is standard and is derived from CDialog
2. It contains a CListBox control
3. There is a CEdit control that appears over each row of the CListbox as the user is editing a series of numbers (the user has to enter a series of numbers in order down a column)
If the user clicks the Cancel button to get out he or she has to click it twice. The first time takes the focus away from the CEdit control. The second time the cancel is actually processed and the dialog box closes.
How do I get around this so that the first click on the cancel button closes the dialog?