The documentation for WM_NOTIFYsays :
WM_NOTIFY
wParam:Identifier of the general control sending the message. This identifier cannot be unique. An application should use an element hwndFromor idFromstructure NMHDR(passed as a parameter lParam) to identify the control.
wParam
hwndFrom
idFrom
NMHDR
lParam
And the documentation for NMHDRsays :
idFromThe identifier of the control sending the message.
What is the difference between the two?
. . , WM_COMMAND, , , GetDlgCtrlID.
WM_COMMAND
GetDlgCtrlID