Skip to content

Latest commit

 

History

History
108 lines (76 loc) · 3.79 KB

nf-oledlg-oleuiaddverbmenuw.md

File metadata and controls

108 lines (76 loc) · 3.79 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:oledlg.OleUIAddVerbMenuW
OleUIAddVerbMenuW function (oledlg.h)
Adds the Verb menu for the specified object to the specified menu. (Unicode)
OleUIAddVerbMenu
OleUIAddVerbMenu function [COM]
OleUIAddVerbMenuW
_ole_OleUIAddVerbMenu
com.oleuiaddverbmenu
oledlg/OleUIAddVerbMenu
oledlg/OleUIAddVerbMenuW
com\oleuiaddverbmenu.htm
com
6efb49e7-b3c1-4035-892d-4572db47b951
12/05/2018
OleUIAddVerbMenu, OleUIAddVerbMenu function [COM], OleUIAddVerbMenuA, OleUIAddVerbMenuW, _ole_OleUIAddVerbMenu, com.oleuiaddverbmenu, oledlg/OleUIAddVerbMenu, oledlg/OleUIAddVerbMenuA, oledlg/OleUIAddVerbMenuW
oledlg.h
Windows
Windows 2000 Professional [desktop apps only]
Windows 2000 Server [desktop apps only]
OleUIAddVerbMenuW (Unicode) and OleUIAddVerbMenuA (ANSI)
OleDlg.lib
OleDlg.dll
Windows
19H1
OleUIAddVerbMenuW
oledlg/OleUIAddVerbMenuW
c++
APIRef
kbSyntax
DllExport
OleDlg.dll
OleUIAddVerbMenu
OleUIAddVerbMenuA
OleUIAddVerbMenuW

OleUIAddVerbMenuW function

-description

Adds the Verb menu for the specified object to the specified menu.

-parameters

-param lpOleObj [in, optional]

Pointer to the IOleObject interface on the selected object. If this is NULL, then a default disabled menu item is created.

-param lpszShortType [in, optional]

Pointer to the short name defined in the registry (AuxName==2) for the object identified with lpOleObj. If the string is not known, then NULL may be passed. If NULL is passed, IOleObject::GetUserType is called to retrieve it. If the caller has easy access to the string, it is faster to pass it in.

-param hMenu [in]

Handle to the menu in which to make modifications.

-param uPos [in]

Position of the menu item.

-param uIDVerbMin [in]

The identifier value at which to start the verbs.

-param uIDVerbMax [in]

The maximum identifier value to be used for object verbs. If uIDVerbMax is 0, then no maximum identifier value is used.

-param bAddConvert [in]

Indicates whether to add a Convert item to the bottom of the menu (preceded by a separator).

-param idConvert [in]

The identifier value to use for the Convert menu item, if bAddConvert is TRUE.

-param lphMenu [out]

An HMENU pointer to the cascading verb menu if it's created. If there is only one verb, this will be filled with NULL.

-returns

This function returns TRUE if lpOleObj was valid and at least one verb was added to the menu. A FALSE return indicates that lpOleObj was NULL and a disabled default menu item was created.

-remarks

If the object has one verb, the verb is added directly to the given menu.

Note

The oledlg.h header defines OleUIAddVerbMenu as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.