コード例 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="e"></param>
        public void DrawSkinFormControlBox(SkinFormControlBoxRenderEventArgs e)
        {
            this.OnRenderSkinFormControlBox(e);

            SkinFormControlBoxRenderEventHandler handle =
                Events[EventRenderSkinFormControlBox]
                as SkinFormControlBoxRenderEventHandler;

            if (handle != null)
            {
                handle(this, e);
            }
        }
コード例 #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="e"></param>
        protected override void OnRenderSkinFormControlBox(SkinFormControlBoxRenderEventArgs e)
        {
            SkinForm            form  = e.Form;
            Graphics            g     = e.Graphics;
            Rectangle           rect  = e.ClipRectangle;
            FormControlBoxState state = e.ControlBoxState;
            bool Active = e.Active;

            bool minimizeBox = form.ControlBox && form.MinimizeBox;
            bool maximizeBox = form.ControlBox && form.MaximizeBox;

            switch (e.ControlBoxStyle)
            {
            case FormControlBoxStyle.Close:
                RenderSkinFormCloseBoxInternal(
                    g,
                    rect,
                    state,
                    Active,
                    minimizeBox,
                    maximizeBox);
                break;

            case FormControlBoxStyle.Maximize:
                RenderSkinFormMaximizeBoxInternal(
                    g,
                    rect,
                    state,
                    Active,
                    minimizeBox,
                    form.WindowState == FormWindowState.Maximized);
                break;

            case FormControlBoxStyle.Minimize:
                RenderSkinFormMinimizeBoxInternal(
                    g,
                    rect,
                    state,
                    Active);
                break;
            }
        }
コード例 #3
0
 protected abstract void OnRenderSkinFormControlBox(SkinFormControlBoxRenderEventArgs e);