CRD.WinUI/Forms/FunctionFormBase.cs

(开头部分) 8KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;

using System.Text;
using System.Windows.Forms;
using CRD.Common;
using System.Drawing.Imaging;

namespace CRD.WinUI.Forms
{
    public partial class FunctionFormBase : FormBase
    {
        public FunctionFormBase()
        {
            this.SetStyle(ControlStyles.DoubleBuffer | ControlStyles.AllPaintingInWmPaint, true);

            InitializeComponent();
            this.Controls.Remove(this.pnlRight);
            this.Controls.Remove(this.pnlLeft);
            this.Controls.Remove(this.pnlBackGroup);
            this.Controls.Remove(this.pnlCaption);
            this.Controls.Remove(this.pnlBottom);
        }

        protected override void WndProc(ref Message m)
        {
            switch (m.Msg)
            {
                case Win32.WM_COMMAND:
                    Win32.SendMessage(Handle, Win32.WM_SYSCOMMAND, (int)m.WParam, (int)m.LParam);
                    break;
                case Win32.WM_SYSCOMMAND:
                    base.WndProc(ref m);

                    if (m.WParam.ToInt64() == Win32.SC_RESTORE)
                    {
                        this.Height += 6;
                        this.Width += 6;
                        //this.btnMaxResore.NormalImage = maxBitmap.Clone(new Rectangle(0, 0, 32, 22), PixelFormat.Format64bppPArgb);
                        //this.btnMaxResore.MouseMoveImage = maxBitmap.Clone(new Rectangle(32, 0, 32, 22), PixelFormat.Format64bppPArgb);
                        //this.btnMaxResore.MouseDownImage = maxBitmap.Clone(new Rectangle(64, 0, 32, 22), PixelFormat.Format64bppPArgb);
                        //this.btnMaxResore.ToolTip = "还原";

                        //Shared.ChangeSkinColor(Shared.CurrentSkinColor, this.btnMaxResore, true);
                    }
                    else if (m.WParam.ToInt64() == Win32.SC_MAXIMIZE)
                    {
                        Application.DoEvents();
                        //this.btnMaxResore.NormalImage = resoreBitmap.Clone(new Rectangle(0, 0, 32, 22), PixelFormat.Format64bppPArgb);
                        //this.btnMaxResore.MouseMoveImage = resoreBitmap.Clone(new Rectangle(32, 0, 32, 22), PixelFormat.Format64bppPArgb);
                        //this.btnMaxResore.MouseDownImage = resoreBitmap.Clone(new Rectangle(64, 0, 32, 22), PixelFormat.Format64bppPArgb);
                        //this.btnMaxResore.ToolTip = "最大化";

                       // Shared.ChangeSkinColor(Shared.CurrentSkinColor, this.btnMaxResore, true);
                    }

                    break;
后面还有 124 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。