Fixing a problem with undocking the NavCenter window.

This commit is contained in:
hyatt%netscape.com 1998-09-24 01:40:22 +00:00
Родитель 4aaeb57d7e
Коммит 0f8a279579
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -527,6 +527,7 @@ void CNSNavFrame::ForceFloat(BOOL show)
else SetWindowPos(&wndNoTopMost, 0, 0, 0, 0, SWP_FRAMECHANGED else SetWindowPos(&wndNoTopMost, 0, 0, 0, 0, SWP_FRAMECHANGED
| SWP_NOMOVE | SWP_NOACTIVATE | SWP_NOSIZE | SWP_HIDEWINDOW); | SWP_NOMOVE | SWP_NOACTIVATE | SWP_NOSIZE | SWP_HIDEWINDOW);
CFrameWnd *pLayout = GetParentFrame();
SetParent(NULL); SetParent(NULL);
if (m_DragWnd) if (m_DragWnd)
@ -545,8 +546,7 @@ void CNSNavFrame::ForceFloat(BOOL show)
XP_UndockNavCenter(GetHTPane()); XP_UndockNavCenter(GetHTPane());
// Tell ParentFrame that we are not docked anymore. // Tell ParentFrame that we are not docked anymore.
CFrameWnd *pLayout = GetParentFrame(); if (pLayout)
if (pLayout)
pLayout->RecalcLayout(); pLayout->RecalcLayout();
} }