OleSetMenuDescriptor
[DllImport("ole32.dll", SetLastError = true)]
public static extern int OleSetMenuDescriptor(
HMENU hmenuCombined,
IntPtr hwndFrame,
IntPtr hwndActiveObject,
ref OLEMENUGROUPWIDTHS lpMenuWidths
);
Microsoft documentation: Link
Last updated