Fix T70991: Maximized file browser hides file name bar on Windows
`WS_CHILD` is a different kind of child window that what we define as child window. See http://forums.codeguru.com/showthread.php?491604. Setting this style flag seems to mess things up a bit in our configuration. The name bar is actually being overlapped by the Windows task bar then. Not totally sure why this happens, but I think it's because windows with the `WS_CHILD` style are positioned relative to the parent, not the desktop (screen without taskbar). So it uses the full space available when maximized, which isn't clipped by the taskbar anymore.
This commit is contained in:
parent
c25a910e4e
commit
f641c60530
Notes:
blender-bot
2023-02-14 09:21:21 +01:00
Referenced by issue #70991, Blender File Explorer: maximize window wont show the file name text box on WIndows
|
@ -270,10 +270,8 @@ GHOST_WindowWin32::GHOST_WindowWin32(GHOST_SystemWin32 *system,
|
|||
}
|
||||
|
||||
if (dialog && parentwindow) {
|
||||
::SetWindowLongPtr(m_hWnd,
|
||||
GWL_STYLE,
|
||||
WS_VISIBLE | WS_CHILD | WS_POPUPWINDOW | WS_CAPTION | WS_MAXIMIZEBOX |
|
||||
WS_SIZEBOX);
|
||||
::SetWindowLongPtr(
|
||||
m_hWnd, GWL_STYLE, WS_VISIBLE | WS_POPUPWINDOW | WS_CAPTION | WS_MAXIMIZEBOX | WS_SIZEBOX);
|
||||
::SetWindowLongPtr(m_hWnd, GWLP_HWNDPARENT, (LONG_PTR)m_parentWindowHwnd);
|
||||
::SetWindowPos(
|
||||
m_hWnd, 0, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_FRAMECHANGED);
|
||||
|
|
Loading…
Reference in New Issue