IUIX_Combo::SetItemImage Method
From PDF XChange PDF SDK
m (Automatic page editing by robot) |
|||
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | __NOTOC__ | ||
[[Category:Editor]] | [[Category:Editor]] | ||
{{#customTitle:IUIX_Combo::SetItemImage Method}} | {{#customTitle:IUIX_Combo::SetItemImage Method}} | ||
− | {{#parentPage:PXV:IUIX_Combo|method | + | {{#parentPage:PXV:IUIX_Combo#Methods|SetItemImage|method}} |
− | + | ||
− | + | ||
− | + | ||
+ | Sets image for an item with a given number. | ||
== Syntax == | == Syntax == | ||
− | <pre class="brush:cpp;gutter:false">HRESULT SetItemImage([in] LONG nItem, [in] IUnknown* pImage);</pre> | + | <pre class="brush:cpp;gutter:false">HRESULT SetItemImage([in] LONG nItem, |
+ | [in] IUnknown* pImage);</pre> | ||
== Parameters == | == Parameters == | ||
− | ; | + | ;nItem |
− | :[in] | + | :[in] number of an item to set image for. |
− | ; | + | ;pImage |
− | :[in] | + | :[in] image to set for required item. Note, that '''pImage''' object should implement [[PXV:IUIX_Icon|IUIX_Icon]] or [[PXV:IUIX_ImageData|IUIX_ImageData]] interface. |
== Return Value == | == Return Value == | ||
− | Returns S_OK if operation was successful or error code | + | Returns S_OK if the operation was successful, or will return an error code if it fails. |
== See Also == | == See Also == | ||
− | + | [[PXV:IUIX_Combo|IUIX_Combo]] |
Latest revision as of 13:24, 15 June 2015
Sets image for an item with a given number.
Syntax
HRESULT SetItemImage([in] LONG nItem, [in] IUnknown* pImage);
Parameters
- nItem
- [in] number of an item to set image for.
- pImage
- [in] image to set for required item. Note, that pImage object should implement IUIX_Icon or IUIX_ImageData interface.
Return Value
Returns S_OK if the operation was successful, or will return an error code if it fails.