comctl32: Allow destruction of toolbar in BN_CLICKED handler.

This commit is contained in:
Felix Nawothnig 2007-04-06 00:27:21 +02:00 committed by Alexandre Julliard
parent 054ed55d71
commit 7657913873
1 changed files with 4 additions and 0 deletions

View File

@ -5860,6 +5860,10 @@ TOOLBAR_LButtonUp (HWND hwnd, WPARAM wParam, LPARAM lParam)
{
SendMessageW (infoPtr->hwndNotify, WM_COMMAND,
MAKEWPARAM(infoPtr->buttons[nHit].idCommand, BN_CLICKED), (LPARAM)hwnd);
/* In case we have just been destroyed... */
if(!IsWindow(hwnd))
return 0;
}
}