Getting and killing focus in edit control?
Posted on 1999-01-25
I'm trying to show a dialog box when user clicks on the edit control.
I process EN_SETFOCUS so that when application receives an EN_SETFOCUS, it
makes a dialog box by DialogBox.
The problem with this method is that when I close the dialog box by EndDialog, it
dispaly dialog again and again. I think it's because that the edit control still has input
focus. So I fall into a kind of infinite loop to display dialog box.
Could someone tell me a better way to implement this?