protected override void OnRenderGroundFormControlBox(FormControlBoxRenderEventArgs e) { SkinForm form = e.Form; Graphics g = e.Graphics; Rectangle rect = e.ClipRectangle; ControlState state = e.ControlBoxtate; bool isActive = e.IsActive; bool ifHasMinimizeBox = form.ControlBox && form.MinimizeBox; bool ifHasMaximizeBox = form.ControlBox && form.MaximizeBox; switch (e.ControlBoxStyle) { case ControlBoxStyle.Maximize: DrawGroundFormMaximizeBox( g, rect, state, isActive, ifHasMinimizeBox, form.WindowState == FormWindowState.Maximized); break; case ControlBoxStyle.Minimize: DrawGroundFormMinimizeBox( g, rect, state, isActive); break; case ControlBoxStyle.Close: DrawGroundFormCloseBox( g, rect, state, isActive, ifHasMinimizeBox, ifHasMaximizeBox); break; } }
public abstract void InitGroundForm(SkinForm form);
public abstract Region CreateRegion(SkinForm form);
public FormBackgroundRenderEventArgs(SkinForm form, Graphics g, Rectangle clipRect) : base(g, clipRect) { _form = form; }
public override void InitGroundForm(SkinForm form) { form.BackColor = StyleSet.BaseColor; }
public void Dispose() { _form = null; }
public MmcControlBoxManager(SkinForm form) { _form = form; }