Search code examples
mfccedit

ON_EN_KILLFOCUS called multiple times


I am using a CEdit control. And I have assigned an event handler for ON_EN_KILLFOCUS message. It gets called correctly. But the problem is that, when ever, I close the dialog box, this event handler gets called four times. How can I prevent this?


Solution

  • Why try to prevent it? Just make sure your handler ignores the ones that don't matter -