WPF

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ChromelessWindowInterop

    Show / Hide Table of Contents

    Class ChromelessWindowInterop

    This class is responsible for Interop with Win32 Windows.

    Inheritance
    System.Object
    ChromelessWindowInterop
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.Windows.Shared
    Assembly: Syncfusion.Shared.Wpf.dll
    Syntax
    public class ChromelessWindowInterop

    Constructors

    ChromelessWindowInterop()

    Declaration
    public ChromelessWindowInterop()

    Methods

    TrackPopupMenu(IntPtr, UInt32, Int32, Int32, Int32, IntPtr, IntPtr)

    The TrackPopupMenu function displays a shortcut menu at the specified location and tracks the selection of items on the menu. The shortcut menu can appear anywhere on the screen.

    Declaration
    [CLSCompliant(false)]
    public static int TrackPopupMenu(IntPtr hMenu, uint uFlags, int x, int y, int nReserved, IntPtr hWnd, IntPtr prcRect)
    Parameters
    Type Name Description
    System.IntPtr hMenu

    Handle to the shortcut menu to be displayed. The handle can be obtained by calling CreatePopupMenu to create a new shortcut menu, or by calling GetSubMenu to retrieve a handle to a submenu associated with an existing menu item.

    System.UInt32 uFlags

    Use zero of more of these flags to specify function options.More information can be found on the following link: http://msdn2.microsoft.com/en-us/library/ms648002.aspx

    System.Int32 x

    Specifies the horizontal location of the shortcut menu, in screen coordinates.

    System.Int32 y

    Specifies the vertical location of the shortcut menu, in screen coordinates.

    System.Int32 nReserved

    Reserved; must be zero.

    System.IntPtr hWnd

    Handle to the window that owns the shortcut menu. This window receives all messages from the menu. The window does not receive a WM_COMMAND message from the menu until the function returns. If you specify TPM_NONOTIFY in the uFlags parameter, the function does not send messages to the window identified by hWnd. However, you must still pass a window handle in hWnd. It can be any window handle from your application.

    System.IntPtr prcRect

    Ignored value.

    Returns
    Type Description
    System.Int32

    If you specify TPM_RETURNCMD in the uFlags parameter, the return value is the menu-item identifier of the item that the user selected. If the user cancels the menu without making a selection, or if an error occurs, then the return value is zero. If you do not specify TPM_RETURNCMD in the uFlags parameter, the return value is nonzero if the function succeeds and zero if it fails. To get extended error information, call GetLastError.

    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved