2 writes to nativeMenuHandle
System.Windows.Forms (2)
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (2)
115
this.
nativeMenuHandle
= hMenu;
1208
nativeMenuHandle
= hMenu;
8 references to nativeMenuHandle
System.Windows.Forms (8)
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (8)
228
if (base.Enabled &&
nativeMenuHandle
!= IntPtr.Zero && targetWindowHandle != IntPtr.Zero) {
703
if (nativeMenuCommandID == -1 ||
nativeMenuHandle
== IntPtr.Zero) {
712
UnsafeNativeMethods.GetMenuItemInfo(new HandleRef(this,
nativeMenuHandle
), nativeMenuCommandID, /*fByPosition instead of ID=*/ false, info);
720
if (nativeMenuCommandID == -1 ||
nativeMenuHandle
== IntPtr.Zero) {
732
UnsafeNativeMethods.GetMenuItemInfo(new HandleRef(this,
nativeMenuHandle
), nativeMenuCommandID, /*fByPosition instead of ID=*/ false, info);
743
UnsafeNativeMethods.GetMenuItemInfo(new HandleRef(this,
nativeMenuHandle
), nativeMenuCommandID, /*fByPosition instead of ID=*/ false, info);
767
if (nativeMenuCommandID == -1 ||
nativeMenuHandle
== IntPtr.Zero) {
776
UnsafeNativeMethods.GetMenuItemInfo(new HandleRef(this,
nativeMenuHandle
), nativeMenuCommandID, /*fByPosition instead of ID=*/ false, info);