user: Don't send WM_PARENTNOTIFY to the desktop window.
This commit is contained in:
parent
c26245077d
commit
4d3282a5fb
|
@ -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,
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*******************************************************************
|
||||
|
|
Loading…
Reference in New Issue