IUIX_CmdHandler::OnDrawItemIcon Method
From PDF XChange PDF SDK
m (Automatic page editing by robot) |
|||
(One intermediate revision by one other user not shown) | |||
Line 3: | Line 3: | ||
{{#customTitle:IUIX_CmdHandler::OnDrawItemIcon Method}} | {{#customTitle:IUIX_CmdHandler::OnDrawItemIcon Method}} | ||
{{#parentPage:PXV:IUIX_CmdHandler#Methods|OnDrawItemIcon|method}} | {{#parentPage:PXV:IUIX_CmdHandler#Methods|OnDrawItemIcon|method}} | ||
− | |||
{{ToReview}} | {{ToReview}} | ||
− | + | Draws icon of the [[PXV:IUIX_CmdItem|command item]] in the given rectangle. | |
== Syntax == | == Syntax == | ||
<pre class="brush:cpp;gutter:false">HRESULT OnDrawItemIcon([in] IUIX_RenderContext* pRC, | <pre class="brush:cpp;gutter:false">HRESULT OnDrawItemIcon([in] IUIX_RenderContext* pRC, | ||
[in] IUIX_CmdItem* pItem, | [in] IUIX_CmdItem* pItem, | ||
− | [in] RECT* | + | [in] RECT* stIconRect, |
− | [in] RECT* | + | [in] RECT* stClip);</pre> |
== Parameters == | == Parameters == | ||
;pRC | ;pRC | ||
− | :[in] Pointer to [[PXV:IUIX_RenderContext|IUIX_RenderContext]]. | + | :[in] Pointer to [[PXV:IUIX_RenderContext|IUIX_RenderContext]] containing the render context by which the icon should be drawn. |
;pItem | ;pItem | ||
− | :[in] Pointer to [[PXV:IUIX_CmdItem|IUIX_CmdItem]]. | + | :[in] Pointer to [[PXV:IUIX_CmdItem|IUIX_CmdItem]] containing the command item which icon should be drawn. |
− | ; | + | ;stIconRect |
− | :[in] Pointer to RECT. | + | :[in] Pointer to RECT containing the icon rectangle. |
− | ; | + | ;stClip |
− | :[in] Pointer to RECT. | + | :[in] Pointer to RECT containing the icon rectangle clip. |
== Return Value == | == Return Value == |
Latest revision as of 01:14, 4 April 2016
Draws icon of the command item in the given rectangle.
Syntax
HRESULT OnDrawItemIcon([in] IUIX_RenderContext* pRC, [in] IUIX_CmdItem* pItem, [in] RECT* stIconRect, [in] RECT* stClip);
Parameters
- pRC
- [in] Pointer to IUIX_RenderContext containing the render context by which the icon should be drawn.
- pItem
- [in] Pointer to IUIX_CmdItem containing the command item which icon should be drawn.
- stIconRect
- [in] Pointer to RECT containing the icon rectangle.
- stClip
- [in] Pointer to RECT containing the icon rectangle clip.
Return Value
Returns S_OK if operation was successful or error code in other cases.