NM_KILLFOCUS
The NM_KILLFOCUS notification message notifies the parent window of a control that the control has lost the input focus. NM_KILLFOCUS is sent in the form of a WM_NOTIFY message.
pnmh = (NMHDR FAR *) lParam;