RCM/cTreeView.cs
(完整代码) 1KBnamespace RCM
{
#region Directives
using System;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using System.Drawing;
#endregion
[System.Security.Permissions.PermissionSet(System.Security.Permissions.SecurityAction.Demand, Name = "FullTrust")]
public class cTreeView : IDisposable
{
#region Fields
private IntPtr _hTreeviewWnd = IntPtr.Zero;
private cInternalScrollBar _cInternalScroll;
#endregion
#region Constructor
public cTreeView(IntPtr handle, Bitmap hztrack, Bitmap hzarrow, Bitmap hzthumb, Bitmap vttrack, Bitmap vtarrow, Bitmap vtthumb, Bitmap fader)
{
if (handle == IntPtr.Zero)
throw new Exception("The treeview handle is invalid.");
_hTreeviewWnd = handle;
if (hztrack != null && hzarrow != null && hzthumb != null && vttrack != null && vtarrow != null && vtthumb != null)
_cInternalScroll = new cInternalScrollBar(_hTreeviewWnd, hztrack, hzarrow, hzthumb, vttrack, vtarrow, vtthumb, fader);
else
throw new Exception("The treeview image(s) are invalid");
}
public void Dispose()
{
try
{
if (_cInternalScroll != null) _cInternalScroll.Dispose();
}
catch { }
}
#endregion
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。