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; }
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; }