Click or drag to resize
Xcalibur Systems LLC Logo

MenuHelperGetSystemMenu Method

Enables the application to access the window menu (also known as the system menu or the control menu) for copying and modifying.

GetSystemMenu function


Namespace: Xcalibur.NativeMethods.V2.Menus
Assembly: Xcalibur.NativeMethods.V2 (in Xcalibur.NativeMethods.V2.dll) Version: 1.0.1.0
Syntax
[DllImportAttribute("user32.dll")]
public static IntPtr GetSystemMenu(
	IntPtr windowHandle,
	bool revert
)

Parameters

windowHandle  IntPtr
A handle to the window that will own a copy of the window menu.
revert  Boolean
The action to be taken. If this parameter is FALSE, GetSystemMenu returns a handle to the copy of the window menu currently in use. The copy is initially identical to the window menu, but it can be modified. If this parameter is TRUE, GetSystemMenu resets the window menu back to the default state. The previous window menu, if any, is destroyed.

Return Value

IntPtr
See Also