IUIX_CmdBar::FlatFindFirstItemByCmdName Method

From PDF XChange PDF SDK
Jump to: navigation, search


Gets FlatIndex of the first item in the commands bar that corresponds to the command's name.


Syntax

HRESULT FlatFindFirstItemByCmdName([in]           BSTR   sCmdName,
                                   [out, retval]  LONG*  nFlatIndex);

Parameters

sCmdName
[in] Value of BSTR containing the command's name.
nFlatIndex
[out, retval] Pointer to LONG containing the resulting FlatIndex of the command in the command bar.

Return Value

Returns S_OK if operation was successful or error code in other cases.

See Also

IUIX_CmdBar