WM_PARENTNOTIFY should not be sent to WS_POPUP windows.

This commit is contained in:
Dmitry Timoshkov 2004-04-02 20:10:11 +00:00 committed by Alexandre Julliard
parent 9ff78729fa
commit 970be6477c
1 changed files with 4 additions and 4 deletions

View File

@ -197,10 +197,10 @@ static HWND *list_window_children( HWND hwnd, ATOM atom, DWORD tid )
*/
static void send_parent_notify( HWND hwnd, UINT msg )
{
if (!(GetWindowLongW( hwnd, GWL_STYLE ) & WS_CHILD)) return;
if (GetWindowLongW( hwnd, GWL_EXSTYLE ) & WS_EX_NOPARENTNOTIFY) return;
SendMessageW( GetParent(hwnd), WM_PARENTNOTIFY,
MAKEWPARAM( msg, GetWindowLongW( hwnd, GWL_ID )), (LPARAM)hwnd );
if ((GetWindowLongW( hwnd, GWL_STYLE ) & (WS_CHILD | WS_POPUP)) == WS_CHILD &&
!(GetWindowLongW( hwnd, GWL_EXSTYLE ) & WS_EX_NOPARENTNOTIFY))
SendMessageW( GetParent(hwnd), WM_PARENTNOTIFY,
MAKEWPARAM( msg, GetWindowLongW( hwnd, GWL_ID )), (LPARAM)hwnd );
}