Commit 1cc88177 authored by Guy Albertelli's avatar Guy Albertelli Committed by Alexandre Julliard

- fix order of parameters is SendNotify

- always use the dlg cntrl ID of the sender
parent 3687100c
...@@ -2295,8 +2295,9 @@ DoNotify (LPNOTIFYDATA lpNotify, UINT uCode, LPNMHDR lpHdr) ...@@ -2295,8 +2295,9 @@ DoNotify (LPNOTIFYDATA lpNotify, UINT uCode, LPNMHDR lpHdr)
HWND hwndParent = GetParent (lpNotify->hwndFrom); HWND hwndParent = GetParent (lpNotify->hwndFrom);
if (hwndParent) { if (hwndParent) {
hwndParent = GetWindow (lpNotify->hwndFrom, GW_OWNER); hwndParent = GetWindow (lpNotify->hwndFrom, GW_OWNER);
if (hwndParent) /* the following is done even if the return from above
idFrom = GetDlgCtrlID (lpNotify->hwndFrom); * is zero. GLA 12/2001 */
idFrom = GetDlgCtrlID (lpNotify->hwndFrom);
} }
} }
...@@ -2315,8 +2316,8 @@ DoNotify (LPNOTIFYDATA lpNotify, UINT uCode, LPNMHDR lpHdr) ...@@ -2315,8 +2316,8 @@ DoNotify (LPNOTIFYDATA lpNotify, UINT uCode, LPNMHDR lpHdr)
* SendNotify [COMCTL32.341] * SendNotify [COMCTL32.341]
* *
* PARAMS * PARAMS
* hwndFrom [I]
* hwndTo [I] * hwndTo [I]
* hwndFrom [I]
* uCode [I] * uCode [I]
* lpHdr [I] * lpHdr [I]
* *
...@@ -2326,13 +2327,13 @@ DoNotify (LPNOTIFYDATA lpNotify, UINT uCode, LPNMHDR lpHdr) ...@@ -2326,13 +2327,13 @@ DoNotify (LPNOTIFYDATA lpNotify, UINT uCode, LPNMHDR lpHdr)
*/ */
LRESULT WINAPI LRESULT WINAPI
COMCTL32_SendNotify (HWND hwndFrom, HWND hwndTo, COMCTL32_SendNotify (HWND hwndTo, HWND hwndFrom,
UINT uCode, LPNMHDR lpHdr) UINT uCode, LPNMHDR lpHdr)
{ {
NOTIFYDATA notify; NOTIFYDATA notify;
TRACE("(0x%04x 0x%04x %d %p)\n", TRACE("(0x%04x 0x%04x %d %p)\n",
hwndFrom, hwndTo, uCode, lpHdr); hwndTo, hwndFrom, uCode, lpHdr);
notify.hwndFrom = hwndFrom; notify.hwndFrom = hwndFrom;
notify.hwndTo = hwndTo; notify.hwndTo = hwndTo;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment