//画窗体按钮 protected override void OnRenderSkinFormControlBox( SkinFormControlBoxRenderEventArgs e) { CCSkinMain form = e.Form; Graphics g = e.Graphics; Rectangle rect = e.ClipRectangle; ControlBoxState state = e.ControlBoxtate; CmSysButton cmSysButton = e.CmSysButton; bool active = e.Active; bool minimizeBox = form.ControlBox && form.MinimizeBox; bool maximizeBox = form.ControlBox && form.MaximizeBox; switch (e.ControlBoxStyle) { case ControlBoxStyle.Close: RenderSkinFormCloseBoxInternal( g, rect, state, active, minimizeBox, maximizeBox, form); break; case ControlBoxStyle.Maximize: RenderSkinFormMaximizeBoxInternal( g, rect, state, active, minimizeBox, form.WindowState == FormWindowState.Maximized, form); break; case ControlBoxStyle.Minimize: RenderSkinFormMinimizeBoxInternal( g, rect, state, active, form); break; case ControlBoxStyle.CmSysBottom: RenderSkinFormCmSysBottomInternal( g, rect, state, active, form, cmSysButton); break; } }
public void DrawSkinFormControlBox( SkinFormControlBoxRenderEventArgs e) { OnRenderSkinFormControlBox(e); SkinFormControlBoxRenderEventHandler handle = Events[EventRenderSkinFormControlBox] as SkinFormControlBoxRenderEventHandler; if (handle != null) { handle(this, e); } }
protected override void OnRenderSkinFormControlBox(SkinFormControlBoxRenderEventArgs e) { throw new NotImplementedException(); }
protected abstract void OnRenderSkinFormControlBox( SkinFormControlBoxRenderEventArgs e);
protected override void OnRenderSkinFormControlBox(SkinFormControlBoxRenderEventArgs e) { CCSkinMain form = e.Form; Graphics g = e.Graphics; Rectangle rect = e.ClipRectangle; ControlBoxState state = e.ControlBoxtate; bool active = e.Active; bool minimizeBox = form.ControlBox && form.MinimizeBox; bool maximizeBox = form.ControlBox && form.MaximizeBox; switch (e.ControlBoxStyle) { case ControlBoxStyle.Minimize: this.RenderSkinFormMinimizeBoxInternal(g, rect, state, active, form); return; case ControlBoxStyle.Maximize: this.RenderSkinFormMaximizeBoxInternal(g, rect, state, active, minimizeBox, form.WindowState == FormWindowState.Maximized, form); return; case ControlBoxStyle.Close: this.RenderSkinFormCloseBoxInternal(g, rect, state, active, minimizeBox, maximizeBox, form); return; case ControlBoxStyle.SysBottom: this.RenderSkinFormSysBottomInternal(g, rect, state, active, form); return; } }
protected abstract void OnRenderSkinFormControlBox(SkinFormControlBoxRenderEventArgs e);
public void DrawSkinFormControlBox(SkinFormControlBoxRenderEventArgs e) { this.OnRenderSkinFormControlBox(e); SkinFormControlBoxRenderEventHandler handle = this.Events[EventRenderSkinFormControlBox] as SkinFormControlBoxRenderEventHandler; if (handle != null) { handle(this, e); } }
protected override void OnRenderSkinFormControlBox(SkinFormControlBoxRenderEventArgs e) { throw new NotImplementedException(); }