RCM/cNumericUpDown.cs
(开头部分) 10KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
namespace 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 cNumericUpDown : NativeWindow, IDisposable
{
#region Constants
// numeric styles
private const int UDS_WRAP = 1;
private const int UDS_SETBUDDYINT = 2;
private const int UDS_ALIGNRIGHT = 4;
private const int UDS_ALIGNLEFT = 8;
private const int UDS_AUTOBUDDY = 16;
private const int UDS_ARROWKEYS = 32;
private const int UDS_HORZ = 64;
private const int UDS_NOTHOUSANDS = 128;
// numeric messages
private const int WM_USER = 0x0400;
private const int UDM_SETRANGE = (WM_USER+101);
private const int UDM_GETRANGE = (WM_USER+102);
private const int UDM_SETPOS = (WM_USER+103);
private const int UDM_GETPOS = (WM_USER+104);
private const int UDM_SETBUDDY = (WM_USER+105);
private const int UDM_GETBUDDY = (WM_USER+106);
private const int UDM_SETACCEL = (WM_USER+107);
private const int UDM_GETACCEL = (WM_USER+108);
private const int UDM_SETBASE = (WM_USER+109);
private const int UDM_GETBASE = (WM_USER+110);
// messages
private const int WM_MOUSEMOVE = 0x200;
private const int WM_MOUSELEAVE = 0x2A3;
private const int WM_LBUTTONDOWN = 0x201;
private const int WM_LBUTTONUP = 0x202;
private const int WM_MOUSEHOVER = 0x2A1;
private const int WM_PAINT = 0xF;
// mouse constants
private const int SM_SWAPBUTTON = 23;
private const int VK_LBUTTON = 0x1;
private const int VK_RBUTTON = 0x2;
// message handler
private static IntPtr MSG_HANDLED = new IntPtr(1);
#endregion
#region Structs
[StructLayout(LayoutKind.Sequential)]
private struct PAINTSTRUCT
{
internal IntPtr hdc;
internal int fErase;
internal RECT rcPaint;
internal int fRestore;
internal int fIncUpdate;
internal int Reserved1;
internal int Reserved2;
后面还有 220 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。