I am writing a program with at least two edit controls in a dialog window.
I want one control to accept only one letter.
Then it checks the entry letter and check against the content in another edit control to make some decisions.
It can either undo the entry or change the content of the OTHER control or even changes behaviour of the parent dialog (like disable some controls).
I try catching the entry in OnEditChange, what happens is if I undo the change with Undo() or SetWindowText(..) it calls the edit's OnEditChange again,
so it goes in circle and give unexpected result.
Any suggestion on how to get around this?