RCM/cTrackBar.cs

(开头部分) 16KB

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

namespace RCM
{
    #region Directives
    using System;
    using System.Windows.Forms;
    using System.Runtime.InteropServices;
    using System.Drawing;
    #endregion

    public class cTrackBar : NativeWindow, IDisposable
    {
        #region Constants
        // mouse buttons
        private const int VK_LBUTTON = 0x1;
        private const int VK_RBUTTON = 0x2;
        private const int SM_SWAPBUTTON = 23;
        // messages
        private const int WM_USER = 0x0400;
        private const int WM_PAINT = 0xF;
        // trackbar messages
        private const int TBM_GETRANGEMIN	= (WM_USER+1);
        private const int TBM_GETRANGEMAX = (WM_USER+2);
        private const int TBM_GETTIC = (WM_USER+3);
        private const int TBM_SETTIC = (WM_USER+4);
        private const int TBM_SETPOS = (WM_USER+5);
        private const int TBM_SETRANGE	= (WM_USER+6);
        private const int TBM_SETRANGEMIN = (WM_USER+7);
        private const int TBM_SETRANGEMAX = (WM_USER+8);
        private const int TBM_CLEARTICS = (WM_USER+9);
        private const int TBM_SETSEL = (WM_USER+10);
        private const int TBM_SETSELSTART = (WM_USER+11);
        private const int TBM_SETSELEND = (WM_USER+12);
        private const int TBM_GETPTICS	= (WM_USER+14);
        private const int TBM_GETTICPOS = (WM_USER+15);
        private const int TBM_GETNUMTICS = (WM_USER+16);
        private const int TBM_GETSELSTART = (WM_USER+17);
        private const int TBM_GETSELEND = (WM_USER+18);
        private const int TBM_CLEARSEL	= (WM_USER+19);
        private const int TBM_SETTICFREQ = (WM_USER+20);
        private const int TBM_SETPAGESIZE = (WM_USER+21);
        private const int TBM_GETPAGESIZE = (WM_USER+22);
        private const int TBM_SETLINESIZE = (WM_USER+23);
        private const int TBM_GETLINESIZE = (WM_USER+24);
        private const int TBM_GETTHUMBRECT	= (WM_USER+25);
        private const int TBM_GETCHANNELRECT = (WM_USER+26);
        private const int TBM_SETTHUMBLENGTH = (WM_USER+27);
        private const int TBM_GETTHUMBLENGTH = (WM_USER+28);
        // 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;
后面还有 345 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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