user: Don't send WM_PARENTNOTIFY to the desktop window.

This commit is contained in:
Alexandre Julliard 2006-03-30 13:22:27 +02:00
parent c26245077d
commit 4d3282a5fb
2 changed files with 7 additions and 2 deletions

View File

@ -1563,6 +1563,7 @@ static void send_parent_notify( HWND hwnd, WORD event, WORD idChild, POINT pt )
if (!(GetWindowLongW( hwnd, GWL_STYLE ) & WS_CHILD)) break;
if (GetWindowLongW( hwnd, GWL_EXSTYLE ) & WS_EX_NOPARENTNOTIFY) break;
if (!(parent = GetParent(hwnd))) break;
if (parent == GetDesktopWindow()) break;
MapWindowPoints( hwnd, parent, &pt, 1 );
hwnd = parent;
SendMessageW( hwnd, WM_PARENTNOTIFY,

View File

@ -275,9 +275,13 @@ static void send_parent_notify( HWND hwnd, UINT msg )
{
if ((GetWindowLongW( hwnd, GWL_STYLE ) & (WS_CHILD | WS_POPUP)) == WS_CHILD &&
!(GetWindowLongW( hwnd, GWL_EXSTYLE ) & WS_EX_NOPARENTNOTIFY))
SendMessageW( GetParent(hwnd), WM_PARENTNOTIFY,
{
HWND parent = GetParent(hwnd);
if (parent && parent != GetDesktopWindow())
SendMessageW( parent, WM_PARENTNOTIFY,
MAKEWPARAM( msg, GetWindowLongPtrW( hwnd, GWLP_ID )), (LPARAM)hwnd );
}
}
/*******************************************************************