mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-26 19:33:31 +00:00
[WIN32SS][NTUSER] Improve HSHELL_WINDOWCREATED condition (#3697)
Modify the condition of generating HSHELL_WINDOWCREATED, especially on WS_CHILD window style. CORE-15669
This commit is contained in:
@@ -1904,7 +1904,16 @@ co_WinPosSetWindowPos(
|
||||
}
|
||||
else if (WinPos.flags & SWP_SHOWWINDOW)
|
||||
{
|
||||
if ((Window->ExStyle & WS_EX_APPWINDOW) ||
|
||||
if (Window->style & WS_CHILD)
|
||||
{
|
||||
if ((Window->style & WS_POPUP) && (Window->ExStyle & WS_EX_APPWINDOW))
|
||||
{
|
||||
co_IntShellHookNotify(HSHELL_WINDOWCREATED, (WPARAM)Window->head.h, 0);
|
||||
if (!(WinPos.flags & SWP_NOACTIVATE))
|
||||
UpdateShellHook(Window);
|
||||
}
|
||||
}
|
||||
else if ((Window->ExStyle & WS_EX_APPWINDOW) ||
|
||||
(!(Window->ExStyle & WS_EX_TOOLWINDOW) && !Window->spwndOwner &&
|
||||
(!Window->spwndParent || UserIsDesktopWindow(Window->spwndParent))))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user