The toolbar commands were not sent to the correct notification

window.
This commit is contained in:
Dave Hawkes 2001-12-05 22:10:26 +00:00 committed by Alexandre Julliard
parent 1c881d5b72
commit 4d03cb64f4
1 changed files with 8 additions and 2 deletions

View File

@ -4385,7 +4385,7 @@ TOOLBAR_LButtonUp (HWND hwnd, WPARAM wParam, LPARAM lParam)
TBN_ENDDRAG);
if (bSendMessage)
SendMessageA (GetParent(hwnd), WM_COMMAND,
SendMessageA (infoPtr->hwndNotify, WM_COMMAND,
MAKEWPARAM(btnPtr->idCommand, 0), (LPARAM)hwnd);
/* !!! Undocumented - toolbar at 4.71 level and above sends
@ -5194,7 +5194,13 @@ ToolbarWindowProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case WM_DRAWITEM:
case WM_MEASUREITEM:
case WM_VKEYTOITEM:
return SendMessageA (GetParent (hwnd), uMsg, wParam, lParam);
{
TOOLBAR_INFO *infoPtr = TOOLBAR_GetInfoPtr (hwnd);
if(infoPtr != NULL)
return SendMessageA (infoPtr->hwndNotify, uMsg, wParam, lParam);
else
return SendMessageA (GetParent (hwnd), uMsg, wParam, lParam);
}
default:
if (uMsg >= WM_USER)