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