Backup/CRD.WinUI/Misc/CommandButton.cs
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Windows.Forms;
using System.Text;
using System.Drawing;
using System.ComponentModel;
using System.Drawing.Imaging;
namespace CRD.WinUI.Misc
{
[DefaultEvent("Click")]
public class CommandButton : System.Windows.Forms.UserControl
{
private Image _mouseMoveImage = null;
private Image _mouseDownImage = null;
private Image _normalImage = null;
private ToolTip toolTip;
private System.ComponentModel.IContainer components;
private string _toolTip;
private Color imageTransparentColor;
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.toolTip = new System.Windows.Forms.ToolTip(this.components);
this.SuspendLayout();
//
// CommandButton
//
this.Name = "CommandButton";
this.Size = new System.Drawing.Size(150, 45);
this.ResumeLayout(false);
}
public CommandButton()
{
//this.SetStyle(ControlStyles.DoubleBuffer | ControlStyles.AllPaintingInWmPaint, true);
this.SetStyle(ControlStyles.UserPaint, true);
this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
this.SetStyle(ControlStyles.DoubleBuffer, true);
this.SetStyle(ControlStyles.ResizeRedraw, true);
this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);
InitializeComponent();
}
public Image MouseMoveImage
{
get
{
//this.BackgroundImage = _mouseMoveImage;
return _mouseMoveImage;
}
set
{
_mouseMoveImage = value;
// this.BackgroundImage = _mouseMoveImage;
}
}
后面还有 123 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
