SFVM_INITMENUPOPUP message

Allows the callback object to modify a Windows Explorer pop-up menu before it is displayed. Used by IShellFolderViewCB::MessageSFVCB.

SFVM_INITMENUPOPUP 

    wParam = (WPARAM)(int) idCmd,nIndex;

    lParam = (LPARAM)(HMENU) hmenu;

            

Parameters

idCmd_nIndex [in]

The low-order word of this parameter holds the value of the first command ID reserved for client commands. The high-order word holds the index of the menu.

hmenu [in, out]

The menu's handle.

Remarks

The system folder view object sends this message when a menu is selected, but before it is displayed. Process this message if, for instance, you need to enable or disable menu commands. The popup menu can be:

  • The File, Edit, or View menu.
  • A top-level menu defined by the client.
  • A client-defined submenu.

Requirements

Requirement Value
Minimum supported client
Windows 2000 Professional [desktop apps only]
Minimum supported server
Windows 2000 Server [desktop apps only]
Header
Shlobj.h

See also

SFVM_MERGEMENU