RECT clientRect, rc;
GetClientRect(&clientRect);
RECT rcSpace = clientRect;
+ const UINT uFlags = (SWP_NOZORDER | SWP_NOACTIVATE | SWP_NOREPOSITION | SWP_NOCOPYBITS);
if (::IsWindowVisible(g_hStatusBar))
{
hDWP = ::DeferWindowPos(hDWP, toolBoxContainer, NULL,
rcSpace.right - CX_TOOLBAR, rcSpace.top,
CX_TOOLBAR, rcSpace.bottom - rcSpace.top,
- SWP_NOZORDER | SWP_NOACTIVATE | SWP_NOREPOSITION);
+ uFlags);
rcSpace.right -= CX_TOOLBAR;
}
else
hDWP = ::DeferWindowPos(hDWP, toolBoxContainer, NULL,
rcSpace.left, rcSpace.top,
CX_TOOLBAR, rcSpace.bottom - rcSpace.top,
- SWP_NOZORDER | SWP_NOACTIVATE | SWP_NOREPOSITION);
+ uFlags);
rcSpace.left += CX_TOOLBAR;
}
}
hDWP = ::DeferWindowPos(hDWP, paletteWindow, NULL,
rcSpace.left, rcSpace.bottom - CY_PALETTE,
rcSpace.right - rcSpace.left, CY_PALETTE,
- SWP_NOZORDER | SWP_NOACTIVATE | SWP_NOREPOSITION);
+ uFlags);
rcSpace.bottom -= CY_PALETTE;
}
else
hDWP = ::DeferWindowPos(hDWP, paletteWindow, NULL,
rcSpace.left, rcSpace.top,
rcSpace.right - rcSpace.left, CY_PALETTE,
- SWP_NOZORDER | SWP_NOACTIVATE | SWP_NOREPOSITION);
+ uFlags);
rcSpace.top += CY_PALETTE;
}
}
hDWP = ::DeferWindowPos(hDWP, canvasWindow, NULL,
rcSpace.left, rcSpace.top,
rcSpace.right - rcSpace.left, rcSpace.bottom - rcSpace.top,
- SWP_NOZORDER | SWP_NOACTIVATE | SWP_NOREPOSITION);
+ uFlags);
}
::EndDeferWindowPos(hDWP);