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.
NM_KILLFOCUS pnmh = (NMHDR FAR *) lParam;