Backup/CRD.WinUI/Forms/FormBase1.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
using CRD.Common;
namespace CRD.WinUI.Forms
{
public partial class FormBase1 : UserControl
{
private SkinColor _currentSkinColor = SkinColor.Default;
private FormBorderStyle _formBorderStyle = FormBorderStyle.None;
private bool _isRedrawSuspended;
public SkinColor CurrentSkinColor
{
get { return _currentSkinColor; }
set { _currentSkinColor = value; }
}
[Browsable(true)]
public FormBorderStyle FormStyle
{
get { return _formBorderStyle; }
set { _formBorderStyle = value; }
}
public bool IsRedrawSuspended
{
get { return _isRedrawSuspended; }
}
public FormBase1()
{
this.SetStyle(ControlStyles.DoubleBuffer | ControlStyles.AllPaintingInWmPaint, true);
InitializeComponent();
}
protected override void OnLoad(EventArgs e)
{
Win32.SetWindowLong(this.Handle, -16, Win32.WS_SYSMENU + Win32.WS_SIZEBOX + Win32.WS_MAXIMIZEBOX + Win32.WS_MINIMIZEBOX);
int Rgn = Win32.CreateRoundRectRgn(3, 3, this.Width - 2, this.Height - 2, 7, 7);
Win32.SetWindowRgn(this.Handle, Rgn, true);
this.PerformReSetFormBitmap();
base.OnLoad(e);
if (this!=Shared.MainForm && this.CurrentSkinColor != Shared.CurrentSkinColor)
{
Shared.ChangeSkinColor(Shared.CurrentSkinColor, this, true);
}
}
后面还有 139 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
