mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:41:12 +00:00
WM_PARENTNOTIFY should not be sent to WS_POPUP windows.
This commit is contained in:
parent
9ff78729fa
commit
970be6477c
1 changed files with 4 additions and 4 deletions
|
@ -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 );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue