Search code examples
c++mfcevent-handlinguicomponents

MFC component defocus event handler


Is there a standard way to handle MFC Edit box defocus event? I mean if I click on the box enter something and then move on on the other component handling event gets fired? Thank you for any help!


Solution

  • Yes, Windows send the WM_KILLFOCUS.

    MFC uses the EN_KILLFOCUS for edit boxes, IIRC.