IUIX_CmdBar::InsertNewBox2 Method
From PDF XChange PDF SDK
m (Automatic page editing by robot) |
|||
Line 8: | Line 8: | ||
== Syntax == | == Syntax == | ||
− | <pre class="brush:cpp;gutter:false">HRESULT InsertNewBox2([in] | + | <pre class="brush:cpp;gutter:false">HRESULT InsertNewBox2([in] LONG nNewBoxID, |
− | [in, defaultvalue(-1)] | + | [in, defaultvalue(-1)] LONG nInsertBefore, |
− | [in, defaultvalue( | + | [in, defaultvalue(UIX_CmdItemSize_Large)] UIX_CmdItemSize nIdealSize, |
− | [in, defaultvalue( | + | [in, defaultvalue(UIX_CmdItemSize_Small)] UIX_CmdItemSize nLowerSize, |
− | [in, defaultvalue(0)] | + | [in, defaultvalue(0)] LONG nStyle, |
− | [out, retval, defaultvalue(NULL)] | + | [out, retval, defaultvalue(NULL)] IUIX_CmdItemBox** pItemBox);</pre> |
== Parameters == | == Parameters == | ||
Line 21: | Line 21: | ||
:[in, defaultvalue(-1)] Value of LONG containing the insert index. | :[in, defaultvalue(-1)] Value of LONG containing the insert index. | ||
;nIdealSize | ;nIdealSize | ||
− | :[in, defaultvalue( | + | :[in, defaultvalue(UIX_CmdItemSize_Default_Large)] Value of [[PXV:UIX_CmdItemSize|UIX_CmdItemSize]] containing the optimal size of the command items in the command items box. |
;nLowerSize | ;nLowerSize | ||
− | :[in, defaultvalue( | + | :[in, defaultvalue(UIX_CmdItemSize_Default_Small)] Value of [[PXV:UIX_CmdItemSize|UIX_CmdItemSize]] containing the smallest size of the command items in the command items box. |
;nStyle | ;nStyle | ||
:[in, defaultvalue(0)] Value of LONG containing the [[PXV:UIX_CmdItemBoxStyleFlags|command items box'es style]]. | :[in, defaultvalue(0)] Value of LONG containing the [[PXV:UIX_CmdItemBoxStyleFlags|command items box'es style]]. |
Latest revision as of 07:59, 30 November 2017
Inserts new command items box into the command bar.
Syntax
HRESULT InsertNewBox2([in] LONG nNewBoxID, [in, defaultvalue(-1)] LONG nInsertBefore, [in, defaultvalue(UIX_CmdItemSize_Large)] UIX_CmdItemSize nIdealSize, [in, defaultvalue(UIX_CmdItemSize_Small)] UIX_CmdItemSize nLowerSize, [in, defaultvalue(0)] LONG nStyle, [out, retval, defaultvalue(NULL)] IUIX_CmdItemBox** pItemBox);
Parameters
- nNewBoxID
- [in] Value of LONG containing the new command item box'es ID.
- nInsertBefore
- [in, defaultvalue(-1)] Value of LONG containing the insert index.
- nIdealSize
- [in, defaultvalue(UIX_CmdItemSize_Default_Large)] Value of UIX_CmdItemSize containing the optimal size of the command items in the command items box.
- nLowerSize
- [in, defaultvalue(UIX_CmdItemSize_Default_Small)] Value of UIX_CmdItemSize containing the smallest size of the command items in the command items box.
- nStyle
- [in, defaultvalue(0)] Value of LONG containing the command items box'es style.
- pItemBox
- [out, retval, defaultvalue(NULL)] Pointer to IUIX_CmdItemBox containing the newly inserted command box.
Return Value
Returns S_OK if operation was successful or error code in other cases.