![Xcalibur Systems LLC Logo](../icons/logo.png) |
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.MenusAssembly: 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
)
<DllImportAttribute("user32.dll">]
Public Shared Function GetSystemMenu (
windowHandle As IntPtr,
revert As Boolean
) As IntPtr
public:
[DllImportAttribute(L"user32.dll")]
static IntPtr GetSystemMenu(
IntPtr windowHandle,
bool revert
)
[<DllImportAttribute("user32.dll")>]
static member GetSystemMenu :
windowHandle : IntPtr *
revert : bool -> IntPtr
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