Source/Themes.cs

(开头部分) 62KB

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

using System;
using System.Runtime.InteropServices;
using System.Windows.Forms;
using System.Drawing;

namespace DevComponents.DotNetBar
{
	/// <summary>
	/// Summary description for Themes.
	/// </summary>
	internal abstract class Themes:IDisposable
	{
		protected Control m_Parent=null;
		protected IntPtr m_hTheme=IntPtr.Zero;

		[StructLayoutAttribute(LayoutKind.Sequential)]
		public struct RECT
		{
			public RECT(Rectangle r)
			{
				this.left=r.Left;
				this.top=r.Top;
				this.right=r.Right;
				this.bottom=r.Bottom;
			}
			int left;
			int top;
			int right;
			int bottom;
		};

		[StructLayoutAttribute(LayoutKind.Sequential)]
		public struct MARGINS
		{
			int cxLeftWidth;
			int cxRightWidth;
			int cyTopHeight;
			int cyBottomHeight;
		};

		[StructLayoutAttribute(LayoutKind.Sequential)]
			public struct SIZE
		{
			public int Width;
			public int Height;
		};
        
        [StructLayout(LayoutKind.Sequential)]
        public struct COLORREF
        {
            public uint ColorDWORD;

            public COLORREF(System.Drawing.Color color)
            {
                ColorDWORD = (uint)color.R + (((uint)color.G) << 8) + (((uint)color.B) << 16);
            }

            public System.Drawing.Color GetColor()
            {
                return System.Drawing.Color.FromArgb((int)(0x000000FFU & ColorDWORD),
后面还有 1424 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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