Reputation: 210445
The documentation for WM_NOTIFY
says:
wParam
:
The identifier of the common control sending the message. This identifier is not guaranteed to be unique. An application should use thehwndFrom
oridFrom
member of theNMHDR
structure (passed as thelParam
parameter) to identify the control.
And the documentation for NMHDR
says:
idFrom
An identifier of the control sending the message.
What exactly is the difference between these two?
Upvotes: 5
Views: 767
Reputation: 45173
There is in general no difference. It's a convenience. The same convenience that you get in the WM_COMMAND
message, which passes both an ID and a window handle, even though you can derive the ID from the window handle via GetDlgCtrlID
.
Upvotes: 4