IUIX_CmdHandler::OnDrawItemIcon Method
From PDF XChange PDF SDK
m (Automatic page editing by robot) |
|||
(4 intermediate revisions by one other user not shown) | |||
Line 2: | Line 2: | ||
[[Category:Editor]] | [[Category:Editor]] | ||
{{#customTitle:IUIX_CmdHandler::OnDrawItemIcon Method}} | {{#customTitle:IUIX_CmdHandler::OnDrawItemIcon Method}} | ||
− | {{#parentPage:PXV:IUIX_CmdHandler|OnDrawItemIcon | + | {{#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 == | ||
Line 28: | Line 27: | ||
== See Also == | == See Also == | ||
− | [[PXV:IUIX_CmdHandler|IUIX_CmdHandler]] | + | [[PXV:IUIX_CmdHandler|IUIX_CmdHandler]] |
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.