![]() Internal static readonly TraceSwitch DropTargetDebug = new TraceSwitch("DropTargetDebug", "Debug ToolStrip Drop code") Internal static readonly TraceSwitch SelectionDebug = new TraceSwitch("SelectionDebug", "Debug ToolStrip Selection code") Internal const int STATE_MENUACTIVE = 0x00008000 Internal const int STATE_LASTMOUSEDOWNEDITEMCAPTURE = 0x00004000 Internal const int STATE_SUSPENDCAPTURE = 0x00002000 Internal const int STATE_HASVISIBLEITEMS = 0x00001000 Internal const int STATE_DRAGGING = 0x00000800 Internal const int STATE_LOCATIONCHANGING = 0x00000400 Internal const int STATE_STRETCH = 0x00000200 Internal const int STATE_RAFTING = 0x00000100 Internal const int STATE_ALLOWMERGE = 0x00000080 Internal const int STATE_USEDEFAULTRENDERER = 0x00000040 ![]() Internal const int STATE_SCROLLBUTTONS = 0x00000020 Internal const int STATE_MENUAUTOEXPANDDEFAULT = 0x00000010 Internal const int STATE_MENUAUTOEXPAND = 0x00000008 Internal const int STATE_DISPOSINGITEMS = 0x00000004 Internal const int STATE_ALLOWITEMREORDER = 0x00000002 Internal const int STATE_CANOVERFLOW = 0x00000001 Private static readonly int PropToolStripPanelCell = PropertyStore.CreateKey() Private static readonly int PropToolTip = PropertyStore.CreateKey() Private static readonly int PropTextDirection = PropertyStore.CreateKey() Private static readonly int PropBindingContext = PropertyStore.CreateKey() Private static readonly object EventEndDrag = new object() Private static readonly object EventBeginDrag = new object() Private static readonly object EventLocationChanging = new object() Private static readonly object EventItemClicked = new object() Private static readonly object EventRendererChanged = new object() Private static readonly object EventLayoutStyleChanged = new object() ![]() Private static readonly object EventItemRemoved = new object() Private static readonly object EventItemAdded = new object() Private static readonly object EventLayoutCompleted = new object() Private static readonly object EventPaintGrip = new object() Internal const int INSERTION_BEAM_WIDTH = 6 Private Point mouseEnterWhenShown = InvalidMouseEnter Private RestoreFocusMessageFilter restoreFocusFilter Private Size imageScalingSize = new Size(16,16) ![]() Private CachedItemHdcInfo cachedItemHdcInfo = null Private Size largestDisplayedItemSize = Size.Empty Private ToolStripDropDownDirection toolStripDropDownDirection = ToolStripDropDownDirection.Default Private Type currentRendererType = typeof(System.Type) Private ToolStripRenderer renderer = null Private ArrayList activeDropDowns = new ArrayList(1) Private Orientation orientation = Orientation.Horizontal Private byte mouseDownID = 0 // NEVER use this directly from another class, 0 should never be returned to another class. Private NativeWindow dropDownOwnerWindow Private ToolStripItem currentlyActiveTooltipItem Private MouseHoverTimer mouseHoverTimer = null Private IDropTarget itemReorderDropTarget = null Private ISupportOleDropSource itemReorderDropSource = null Private ToolStripGripStyle toolStripGripStyle = ToolStripGripStyle.Visible Private Rectangle lastInsertionMarkRect = Rectangle.Empty Private LayoutSettings layoutSettings = null Private ToolStripLayoutStyle layoutStyle = ToolStripLayoutStyle.StackWithOverflow Private LayoutEngine layoutEngine = null Private ToolStripItem lastMouseDownedItem = null Private ToolStripItem lastMouseActiveItem = null Private IntPtr hwndThatLostFocus = IntPtr.Zero Private ToolStripDropTargetManager dropTargetManager = null Private ToolStripItemCollection overflowItems = null Private ToolStripItemCollection displayedItems = null Private ToolStripGrip toolStripGrip = null Private ToolStripOverflowButton toolStripOverflowButton = null Private ToolStripItemCollection toolStripItemCollection = null Internal static Point InvalidMouseEnter = new Point(Int32.MaxValue, Int32.MaxValue) Private static Size onePixel = new Size(1,1) Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / WinForms / Managed / System / WinForms / ToolStrip.cs / 1 / ToolStrip.cs
0 Comments
Leave a Reply. |