示例#1
0
 public NativeUpDown(UpDown OwnerControl) {
     CreateParams cp = new CreateParams();
     cp.ClassName = "msctls_updown32";
     cp.X = cp.Y = 0;
     cp.Width = OwnerControl.Width;
     cp.Height = OwnerControl.Height;
     cp.Parent = OwnerControl.Handle;
     cp.Style = 0x50000040;
     CreateHandle(cp);
     fTrackMouseEvent = true;
     TME = new TRACKMOUSEEVENT();
     TME.cbSize = Marshal.SizeOf(TME);
     TME.dwFlags = 2;
     TME.hwndTrack = Handle;
 }
示例#2
0
 public NativeUpDown(UpDown OwnerControl) {
     CreateParams cp = new CreateParams();
     cp.ClassName = "msctls_updown32";
     cp.X = cp.Y = 0;
     cp.Width = OwnerControl.Width;
     cp.Height = OwnerControl.Height;
     cp.Parent = OwnerControl.Handle;
     cp.Style = 0x50000040;
     this.CreateHandle(cp);
     this.fTrackMouseEvent = true;
     this.TME = new QTTabBarLib.Interop.TRACKMOUSEEVENT();
     this.TME.cbSize = Marshal.SizeOf(this.TME);
     this.TME.dwFlags = 2;
     this.TME.hwndTrack = base.Handle;
 }
示例#3
0
            public NativeUpDown(UpDown OwnerControl)
            {
                CreateParams cp = new CreateParams();

                cp.ClassName = "msctls_updown32";
                cp.X         = cp.Y = 0;
                cp.Width     = OwnerControl.Width;
                cp.Height    = OwnerControl.Height;
                cp.Parent    = OwnerControl.Handle;
                cp.Style     = 0x50000040;
                this.CreateHandle(cp);
                this.fTrackMouseEvent = true;
                this.TME           = new QTTabBarLib.Interop.TRACKMOUSEEVENT();
                this.TME.cbSize    = Marshal.SizeOf(this.TME);
                this.TME.dwFlags   = 2;
                this.TME.hwndTrack = base.Handle;
            }
示例#4
0
            public NativeUpDown(UpDown OwnerControl)
            {
                CreateParams cp = new CreateParams();

                cp.ClassName = "msctls_updown32";
                cp.X         = cp.Y = 0;
                cp.Width     = OwnerControl.Width;
                cp.Height    = OwnerControl.Height;
                cp.Parent    = OwnerControl.Handle;
                cp.Style     = 0x50000040;
                CreateHandle(cp);
                fTrackMouseEvent = true;
                TME           = new TRACKMOUSEEVENT();
                TME.cbSize    = Marshal.SizeOf(TME);
                TME.dwFlags   = 2;
                TME.hwndTrack = Handle;
            }