54 references to Handle
System.Windows.Forms (54)
winforms\Managed\System\WinForms\ListView.cs (1)
5045
IntPtr oldHandle = UnsafeNativeMethods.SendMessage(new HandleRef(this, this.Handle), NativeMethods.LVM_SETTOOLTIPS, new HandleRef(toolTip, toolTip.
Handle
), 0);
winforms\Managed\System\WinForms\StatusBar.cs (1)
1783
ret = (int)UnsafeNativeMethods.SendMessage(new HandleRef(p.MainToolTip, p.MainToolTip.
Handle
), NativeMethods.TTM_ADDTOOL, 0, GetTOOLINFO(tool));
winforms\Managed\System\WinForms\TabControl.cs (1)
1738
UnsafeNativeMethods.SendMessage(new HandleRef(this, this.Handle), NativeMethods.TCM_SETTOOLTIPS, new HandleRef(toolTip, toolTip.
Handle
), 0);
winforms\Managed\System\WinForms\ToolBar.cs (1)
1494
UnsafeNativeMethods.SendMessage(new HandleRef(this, this.Handle), NativeMethods.TB_SETTOOLTIPS, new HandleRef(toolTip, toolTip.
Handle
), 0);
winforms\Managed\System\WinForms\ToolTip.cs (47)
144
UnsafeNativeMethods.SendMessage(new HandleRef(this,
Handle
), NativeMethods.TTM_ACTIVATE, (value==true)? 1: 0, 0);
225
UnsafeNativeMethods.SendMessage(new HandleRef(this,
Handle
), NativeMethods.TTM_SETTIPBKCOLOR, ColorTranslator.ToWin32(backColor), 0);
290
UnsafeNativeMethods.SendMessage(new HandleRef(this,
Handle
), NativeMethods.TTM_SETTIPTEXTCOLOR, ColorTranslator.ToWin32(foreColor), 0);
538
UnsafeNativeMethods.SendMessage(new HandleRef(this,
Handle
), NativeMethods.TTM_SETTITLE, (int)toolTipIcon, title);
542
UnsafeNativeMethods.SendMessage(new HandleRef(this,
Handle
), NativeMethods.TTM_UPDATE, 0, 0);
577
UnsafeNativeMethods.SendMessage(new HandleRef(this,
Handle
), NativeMethods.TTM_SETTITLE, (int)toolTipIcon, toolTipTitle);
581
UnsafeNativeMethods.SendMessage(new HandleRef(this,
Handle
), NativeMethods.TTM_UPDATE, 0, 0);
898
int style = unchecked((int)((long)UnsafeNativeMethods.GetWindowLong(new HandleRef(this,
Handle
), NativeMethods.GWL_STYLE)));
900
UnsafeNativeMethods.SetWindowLong(new HandleRef(this,
Handle
), NativeMethods.GWL_STYLE, new HandleRef(null, (IntPtr)style));
906
UnsafeNativeMethods.SendMessage(new HandleRef(this,
Handle
), NativeMethods.TTM_SETMAXTIPWIDTH, 0, SystemInformation.MaxWindowTrackSize.Width);
926
UnsafeNativeMethods.SendMessage(new HandleRef(this,
Handle
), NativeMethods.TTM_ACTIVATE, (active == true) ? 1 : 0, 0);
929
UnsafeNativeMethods.SendMessage(new HandleRef(this,
Handle
), NativeMethods.TTM_SETTIPBKCOLOR, ColorTranslator.ToWin32(BackColor), 0);
932
UnsafeNativeMethods.SendMessage(new HandleRef(this,
Handle
), NativeMethods.TTM_SETTIPTEXTCOLOR, ColorTranslator.ToWin32(ForeColor), 0);
937
UnsafeNativeMethods.SendMessage(new HandleRef(this,
Handle
), NativeMethods.TTM_SETTITLE, (int)toolTipIcon, title);
971
int ret = (int)UnsafeNativeMethods.SendMessage(new HandleRef(this,
Handle
), NativeMethods.TTM_ADDTOOL, 0, tool);
1066
UnsafeNativeMethods.SendMessage(new HandleRef(this,
Handle
), NativeMethods.TTM_DELTOOL, 0, GetMinTOOLINFO(ctl));
1116
return (int)UnsafeNativeMethods.SendMessage(new HandleRef(this,
Handle
), NativeMethods.TTM_GETDELAYTIME, type, 0);
1401
UnsafeNativeMethods.SendMessage(new HandleRef(this,
Handle
), NativeMethods.TTM_SETDELAYTIME, type, time);
1478
UnsafeNativeMethods.SendMessage(new HandleRef(this,
Handle
), NativeMethods.TTM_SETTOOLINFO,
1783
IntPtr bubbleSizeInt = UnsafeNativeMethods.SendMessage(new HandleRef(this, this.
Handle
), NativeMethods.TTM_GETBUBBLESIZE, 0, this.GetMinToolInfoForTool(tool.GetOwnerWindow()));
1931
UnsafeNativeMethods.SendMessage(new HandleRef(this, this.
Handle
), NativeMethods.TTM_TRACKPOSITION, 0, NativeMethods.Util.MAKELONG(pointX, pointY));
1960
UnsafeNativeMethods.SendMessage(new HandleRef(this, this.
Handle
), NativeMethods.TTM_TRACKACTIVATE, 0, GetWinTOOLINFO(hWnd));
1961
UnsafeNativeMethods.SendMessage(new HandleRef(this, this.
Handle
), NativeMethods.TTM_DELTOOL, 0, GetWinTOOLINFO(hWnd));
2018
int ret = (int)UnsafeNativeMethods.SendMessage(new HandleRef(this,
Handle
), NativeMethods.TTM_GETTOOLINFO, 0, ti);
2040
UnsafeNativeMethods.SendMessage(new HandleRef(this, this.
Handle
), NativeMethods.TTM_SETTOOLINFO, 0, ti);
2041
UnsafeNativeMethods.SendMessage(new HandleRef(this, this.
Handle
), NativeMethods.TTM_TRACKACTIVATE, 1, ti);
2075
UnsafeNativeMethods.SendMessage(new HandleRef(this, this.
Handle
), NativeMethods.TTM_ADDTOOL, 0, toolInfo);
2076
UnsafeNativeMethods.SendMessage(new HandleRef(this, this.
Handle
), NativeMethods.TTM_TRACKACTIVATE, 1, toolInfo);
2173
SafeNativeMethods.SetWindowPos(new HandleRef(this, this.
Handle
),
2186
UnsafeNativeMethods.GetWindowRect(new HandleRef(this,
Handle
), ref r);
2189
int ret = (int)UnsafeNativeMethods.SendMessage(new HandleRef(this,
Handle
), NativeMethods.TTM_GETCURRENTTOOL, 0, ti);
2233
int ret = (int)UnsafeNativeMethods.SendMessage(new HandleRef(this,
Handle
), NativeMethods.TTM_GETCURRENTTOOL, 0, ti);
2285
UnsafeNativeMethods.GetWindowRect(new HandleRef(this,
Handle
), ref r);
2289
int ret = (int)UnsafeNativeMethods.SendMessage(new HandleRef(this,
Handle
), NativeMethods.TTM_GETCURRENTTOOL, 0, ti);
2319
UnsafeNativeMethods.GetWindowRect(new HandleRef(this,
Handle
), ref r);
2325
UnsafeNativeMethods.SendMessage(new HandleRef(this,
Handle
), NativeMethods.TTM_ADJUSTRECT, 1, ref r);
2339
UnsafeNativeMethods.SendMessage(new HandleRef(this,
Handle
), NativeMethods.TTM_SETMAXTIPWIDTH, 0, maxwidth);
2344
SafeNativeMethods.SetWindowPos(new HandleRef(this, this.
Handle
),
2353
SafeNativeMethods.SetWindowPos(new HandleRef(this, this.
Handle
),
2372
SafeNativeMethods.ShowWindow(new HandleRef(this,
Handle
), NativeMethods.SW_HIDE);
2400
int ret = (int)UnsafeNativeMethods.SendMessage(new HandleRef(this,
Handle
), NativeMethods.TTM_GETCURRENTTOOL, 0, ti);
2494
int ret = (int)UnsafeNativeMethods.SendMessage(new HandleRef(this,
Handle
), NativeMethods.TTM_GETCURRENTTOOL, 0, ti);
2516
UnsafeNativeMethods.SendMessage(new HandleRef(this,
Handle
), NativeMethods.TTM_SETMAXTIPWIDTH, 0, screen.WorkingArea.Width);
2599
IntPtr dc = UnsafeNativeMethods.BeginPaint(new HandleRef(this,
Handle
),ref ps);
2610
int ret = unchecked( (int) (long)UnsafeNativeMethods.SendMessage(new HandleRef(this,
Handle
), NativeMethods.TTM_GETCURRENTTOOL, 0, ti));
2620
font = Font.FromHfont(UnsafeNativeMethods.SendMessage(new HandleRef(this,
Handle
), NativeMethods.WM_GETFONT, 0, 0));
2640
UnsafeNativeMethods.EndPaint(new HandleRef(this,
Handle
),ref ps);
winforms\Managed\System\WinForms\TreeView.cs (2)
1764
UnsafeNativeMethods.SendMessage(new HandleRef(toolTip, toolTip.
Handle
), NativeMethods.TTM_SETMAXTIPWIDTH, 0, SystemInformation.MaxWindowTrackSize.Width);
1765
UnsafeNativeMethods.SendMessage(new HandleRef(this, this.Handle), NativeMethods.TVM_SETTOOLTIPS, new HandleRef(toolTip, toolTip.
Handle
), 0);
winforms\Managed\System\WinForms\TrustManagerPromptUI.cs (1)
728
UnsafeNativeMethods.SendMessage(new HandleRef(toolTipFromUrl, toolTipFromUrl.
Handle
), NativeMethods.TTM_SETMAXTIPWIDTH, 0, 600);