4 writes to handle
System.Windows.Forms (4)
winforms\Managed\System\WinForms\Menu.cs (3)
84
if (handle == IntPtr.Zero)
handle
= CreateMenuHandle();
219
handle
= IntPtr.Zero;
314
this.
handle
= IntPtr.Zero;
winforms\Managed\System\WinForms\RichTextBox.cs (1)
4047
menu.
handle
= IntPtr.Zero;
19 references to handle
System.Windows.Forms (19)
winforms\Managed\System\WinForms\Menu.cs (10)
84
if (
handle
== IntPtr.Zero) handle = CreateMenuHandle();
86
return
handle
;
216
if (
handle
!= IntPtr.Zero) {
217
UnsafeNativeMethods.DestroyMenu(new HandleRef(this,
handle
));
282
while (UnsafeNativeMethods.GetMenuItemCount(new HandleRef(this,
handle
)) > 0) {
283
UnsafeNativeMethods.RemoveMenu(new HandleRef(this,
handle
), 0, NativeMethods.MF_BYPOSITION);
312
if (
handle
!= IntPtr.Zero) {
313
UnsafeNativeMethods.DestroyMenu(new HandleRef(this,
handle
));
337
if (item.
handle
== value) return item;
629
Menu menu = (m.LParam ==
handle
) ? this : FindMenuItemInternal(FindHandle, m.LParam);
winforms\Managed\System\WinForms\MenuItem.cs (8)
267
UnsafeNativeMethods.SetMenuDefaultItem(new HandleRef(menu, menu.
handle
), MenuID, false);
270
UnsafeNativeMethods.SetMenuDefaultItem(new HandleRef(menu, menu.
handle
), -1, false);
453
UnsafeNativeMethods.GetMenuItemInfo(new HandleRef(menu, menu.
handle
), MenuID, false, info);
480
UnsafeNativeMethods.GetMenuItemInfo(new HandleRef(menu, menu.
handle
), i, true, info);
857
UnsafeNativeMethods.InsertMenuItem(new HandleRef(menu, menu.
handle
), -1, true, info);
1433
UnsafeNativeMethods.GetMenuItemInfo(new HandleRef(menu, menu.
handle
), MenuID, false, info);
1439
UnsafeNativeMethods.SetMenuItemInfo(new HandleRef(menu, menu.
handle
), MenuID, false, info);
1461
UnsafeNativeMethods.SetMenuItemInfo(new HandleRef(menu, menu.
handle
), MenuID, false, info);
winforms\Managed\System\WinForms\RichTextBox.cs (1)
4041
if (menu.items[i].
handle
!= IntPtr.Zero) {