From Tracker Software PDF SDK
Searches for the first command item in the command items box by the correspondent command's sub-control.
HRESULT FindItemByCtl([in] IUIX_Obj* pCtl, [out, retval] LONG* nIndex);
- [in] Pointer to IUIX_Obj containing the command's sub-control that will be used to find first correspondent command item.
- [out, retval] Pointer to LONG containing the index of the correspondent item. If no command was found then -1 will be returned.
Returns S_OK if operation was successful or error code in other cases.