1 write to nativeMenuCommandID
System.Windows.Forms (1)
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (1)
113
this.
nativeMenuCommandID
= nativeMenuCommandId;
16 references to nativeMenuCommandID
System.Windows.Forms (16)
winforms\Managed\System\WinForms\ToolStripMenuItem.cs (16)
225
if (
nativeMenuCommandID
!= -1) {
703
if (
nativeMenuCommandID
== -1 || nativeMenuHandle == IntPtr.Zero) {
711
info.wID =
nativeMenuCommandID
;
712
UnsafeNativeMethods.GetMenuItemInfo(new HandleRef(this, nativeMenuHandle),
nativeMenuCommandID
, /*fByPosition instead of ID=*/ false, info);
720
if (
nativeMenuCommandID
== -1 || nativeMenuHandle == IntPtr.Zero) {
730
info.wID =
nativeMenuCommandID
;
732
UnsafeNativeMethods.GetMenuItemInfo(new HandleRef(this, nativeMenuHandle),
nativeMenuCommandID
, /*fByPosition instead of ID=*/ false, info);
737
info.wID =
nativeMenuCommandID
;
743
UnsafeNativeMethods.GetMenuItemInfo(new HandleRef(this, nativeMenuHandle),
nativeMenuCommandID
, /*fByPosition instead of ID=*/ false, info);
767
if (
nativeMenuCommandID
== -1 || nativeMenuHandle == IntPtr.Zero) {
775
info.wID =
nativeMenuCommandID
;
776
UnsafeNativeMethods.GetMenuItemInfo(new HandleRef(this, nativeMenuHandle),
nativeMenuCommandID
, /*fByPosition instead of ID=*/ false, info);
869
if (
nativeMenuCommandID
!= -1) {
871
if ((
nativeMenuCommandID
& 0xF000) != 0) {
877
UnsafeNativeMethods.PostMessage( new HandleRef(this, targetWindowHandle), NativeMethods.WM_SYSCOMMAND,
nativeMenuCommandID
, 0);
883
UnsafeNativeMethods.PostMessage( new HandleRef(this, targetWindowHandle), NativeMethods.WM_COMMAND,
nativeMenuCommandID
, 0);