public override Size ManagedWindowButtonSize (InternalWindowManager wm)
{
int height = ManagedWindowTitleBarHeight (wm);
if (!wm.IsMaximized && !wm.IsMinimized) {
if (wm.IsToolWindow)
return new Size (SystemInformation.ToolWindowCaptionButtonSize.Width - 2,
height - 5);
if (wm.Form.FormBorderStyle == FormBorderStyle.None)
return Size.Empty;
} else
height = SystemInformation.CaptionHeight;
return new Size (SystemInformation.CaptionButtonSize.Width - 2,
height - 5);
}