Newsflash

Add your items to Windows Explorer Shell Context Menu - it never was easier: Windows Explorer Shell Context Menu Pro v4.91 was released

Read more...
 

Full Vista support appended

Read more...
 
Home arrow Archive arrow WM_CONTEXTMENU Notification
WM_CONTEXTMENU Notification

WM_CONTEXTMENU Notification

The WM_CONTEXTMENU message notifies a window that the user clicked the right mouse button (right-clicked) in the window.


Syntax

    WM_CONTEXTMENU

        WPARAM wParam
        LPARAM lParam;

Add an item to Windows Explorer Shell context (right-click) menu easily – How to add ?

 

 

 Add items to Windows Explorer Shell Context Menu Pros with Windows Explorer Shell Context Menu Pro

 

  Add items to Windows Explorer Shell context menu easily with Windows Explorer Shell Context Menu Pro. This powerful .Net component for your own, custom items adding to Windows Explorer Shell Context Menu Pro will add all your application entries to Windows Explorer Shell Context Menu Pro. This .Net component with full C# , C++ and VB.NET support include detailed C# / VB.NET samples, tutorials , user-friendly manuals and support all you may need :

  • Add items to Windows Explorer Shell Context Menu Pro to be shown on any Windows OS (all operating systems are supported – XP, Vista, x64 of all types , etc.)
  • Add all your items to Windows Explorer Shell Context Menu Pro to be shown in any way - with custom caption and icon, as separator or sub-menu
  • Add items to Explorer context menu to be shown for all files or shown only for files of particular type (for example, only for .PDF .TXT , .MP3,.WMA,.AAC , .WMV files)
  • Add your program items to Windows Explorer Shell Context Menu Pro, sub-menus, sub-menus of unlimited depth and add to Explorer context menu entries of all types


Windows Explorer Shell Context Menu Pro - is a powerful .Net framework component that support all you need to insert your program items to the Explorer Shell context menu - in a fast and easy way. Add all your application items to Explorer context menu right now – add items to context menu fast and exactly as you want :

 Add items To the Windows Explorer Shell Context Menu Pro very easy with Explorer Shell Context Menu

 

Introduction 

WM_CONTEXTMENU is a notification message used in Windows OS of old versions to add items to Windows Explorer context (right-click) menu. As you understand, because this notification message is used only for Windows 95 / Windows 98 (not on XP, Vista, x64 - 64-bit Windows), to add items to Windows Explorer Shell Context Menu Pro you should use, according to Microsoft guidelines, appropriate .Net component - Windows Explorer Shell Context Menu Pro. Explorer Context Menu - is a .Net component that will add entries of all types to Windows Explorer context (right-click) menus.

 

Parameters

    wParam
        Handle to the window in which the user right-clicked the mouse. This can be a child window of the window receiving the message. For more information about processing this message, see the Remarks section.
    lParam
        The low-order word specifies the horizontal position of the cursor, in screen coordinates, at the time of the mouse click.

        The high-order word specifies the vertical position of the cursor, in screen coordinates, at the time of the mouse click.


Return Value

    No return value.


Remarks

    A window can process this message by displaying a shortcut menu using the TrackPopupMenu or TrackPopupMenuEx functions. To obtain the horizontal and vertical positions, use the following code.
    Copy Code

    xPos = GET_X_LPARAM(lParam);
    yPos = GET_Y_LPARAM(lParam);

    If a window does not display a shortcut menu it should pass this message to the DefWindowProc function. If a window is a child window, DefWindowProc sends the message to the parent. Otherwise, DefWindowProc displays a default shortcut menu if the specified position is in the window's caption.

    DefWindowProc generates the WM_CONTEXTMENU message when it processes the WM_RBUTTONUP or WM_NCRBUTTONUP message or when the user types SHIFT+F10. The WM_CONTEXTMENU message is also generated when the user presses and releases the VK_APPS key.

    If the context menu is generated from the keyboard—for example, if the user types SHIFT+F10—then the x- and y-coordinates are -1 and the application should display the context menu at the location of the current selection rather than at (xPos, yPos).


Notification Requirements

    Minimum DLL Version    None
    Header    Declared in Winuser.h, include Windows.h
    Minimum operating systems    Windows 95, Windows NT 3.51

 
< Prev   Next >
© 2012 Windows Explorer Shell Context Menu C# .NET component, C# Visual Studio and VB.NET Delphi component for Explorer Shell Context Menu.
All product and company names are trademarks or registered trademarks of their respective owners.