Jump to content

wpAddUserItemsToPopupMenu

From EDM2

This method is specific to Version 4, or higher, of the OS/2 operating system.

This instance method adds user defined items to the pop-up menu.

Syntax

_wpAddUserItemsToPopupMenu(somSelf, hwndMenu, hwndCnr, iPosition)

Parameters

somSelf (WPFileSystem *) - input
Pointer to the object on which the method is being invoked.
Points to an object of class WPFileSystem.
hwndMenu (HWND) - input
Handle to the menu.
hwndCnr (HWND) - input
Handle to the container.
iPosition (ULONG) - input
The position on the pop-up menu.

Returns

rc (BOOL) - returns
Success indicator.
TRUE: Successful completion.
FALSE: Error occurred.

Remarks

This method may be made private in a future release. Do not attempt to override or call this method.

Usage

This method is called by the Workplace Shell during processing of the wpModifyMenu method. It was not intended for a user to either override or call this method.

How to Override

This method is generally not overridden.

Example Code

#define INCL_WINWORKPLACE
#include <os2.h>

WPFileSystem    *somSelf;       /* Pointer to the object on which the method is being invoked. */
HWND             hwndMenu;      /* Handle to the menu. */
HWND             hwndCnr;       /* Handle to the container. */
ULONG            iPosition;     /* The position on the pop-up menu. */
BOOL             rc;            /* Success indicator. */

rc = _wpAddUserItemsToPopupMenu(somSelf, hwndMenu, hwndCnr, iPosition);

Related Methods