private void UpdateStyles()
{
// To show style changes, the non-client area must be repainted. Using the
// control's Invalidate method does not affect the non-client area.
// Instead use a Win32 call to signal the style has changed.
NativeMethods.SetWindowPos(this.MdiClient.Handle, IntPtr.Zero, 0, 0, 0, 0,
FlagsSetWindowPos.SWP_NOACTIVATE |
FlagsSetWindowPos.SWP_NOMOVE |
FlagsSetWindowPos.SWP_NOSIZE |
FlagsSetWindowPos.SWP_NOZORDER |
FlagsSetWindowPos.SWP_NOOWNERZORDER |
FlagsSetWindowPos.SWP_FRAMECHANGED);
}