IUIX_CmdBar::FindItemByCtl Method

From Tracker Software PDF SDK
Jump to: navigation, search


Searches for the first command item in the command bar's command item boxes by the correspondent command's sub-control.

Syntax

HRESULT FindItemByCtl([in]           IUIX_Obj*       pCtl,
                      [out, retval]  IUIX_CmdItem**  pItem);

Parameters

pCtl
[in] Pointer to IUIX_Obj containing the command's sub-control that will be used to find first correspondent command item.
pItem
[out, retval] Pointer to IUIX_CmdItem containing the index of the correspondent item. If no command was found then -1 will be returned.

Return Value

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

See Also

IUIX_CmdBar