IUIX_Combo::SetItemStyle Method
From PDF XChange PDF SDK
m (Automatic page editing by robot) |
|||
(8 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | __NOTOC__ | ||
[[Category:Editor]] | [[Category:Editor]] | ||
{{#customTitle:IUIX_Combo::SetItemStyle Method}} | {{#customTitle:IUIX_Combo::SetItemStyle Method}} | ||
− | {{#parentPage:PXV:IUIX_Combo|SetItemStyle | + | {{#parentPage:PXV:IUIX_Combo#Methods|SetItemStyle|method}} |
− | + | ||
− | + | ||
− | + | ||
+ | Sets style of a required item. | ||
== Syntax == | == Syntax == | ||
Line 14: | Line 14: | ||
== Parameters == | == Parameters == | ||
;nItem | ;nItem | ||
− | :[in] | + | :[in] number of an item to set new style for. |
;nStyle | ;nStyle | ||
− | :[in] | + | :[in] specifies style flags from [[PXV:UIX_ComboItemStyleFlags|UIX_ComboItemStyleFlags]] enumeration. |
;nStyleMask | ;nStyleMask | ||
− | :[in, defaultvalue(0)] | + | :[in, defaultvalue(0)] specifies style mask with flags from [[PXV:UIX_ComboItemStyleFlags|UIX_ComboItemStyleFlags]] enumeration. If NOT set to 0, this parameter removes specified styles from current item style and applies only those flags of '''nStyle''' parameter to the combo box item that were set in '''nStyleMask'''. For instance, if previous item style was set to <code>UIX_ComboItemStyle_Bold</code>, new item style '''nStyle''' parameter is set to <code>UIX_ComboItemStyle_Disabled</code>, and '''nStyleMask''' is set to <code>(UIX_ComboItemStyle_Bold | UIX_ComboItemStyle_Disabled)</code>, then a given item style will be first set to ''non-bold'', and then to ''disabled''. If '''nStyleMask''' was set to <code>UIX_ComboItemStyle_Bold</code>, then item style would be set ''non-bold'' but NOT ''disabled''. |
== Return Value == | == Return Value == | ||
− | Returns S_OK if operation was successful or error code in other cases. | + | Returns <code>S_OK</code> if operation was successful or error code in other cases. |
== See Also == | == See Also == | ||
− | + | [[PXV:IUIX_Combo|IUIX_Combo]] |
Latest revision as of 13:29, 15 June 2015
Sets style of a required item.
Syntax
HRESULT SetItemStyle([in] LONG nItem, [in] LONG nStyle, [in, defaultvalue(0)] LONG nStyleMask);
Parameters
- nItem
- [in] number of an item to set new style for.
- nStyle
- [in] specifies style flags from UIX_ComboItemStyleFlags enumeration.
- nStyleMask
- [in, defaultvalue(0)] specifies style mask with flags from UIX_ComboItemStyleFlags enumeration. If NOT set to 0, this parameter removes specified styles from current item style and applies only those flags of nStyle parameter to the combo box item that were set in nStyleMask. For instance, if previous item style was set to
UIX_ComboItemStyle_Bold
, new item style nStyle parameter is set toUIX_ComboItemStyle_Disabled
, and nStyleMask is set to(UIX_ComboItemStyle_Bold | UIX_ComboItemStyle_Disabled)
, then a given item style will be first set to non-bold, and then to disabled. If nStyleMask was set toUIX_ComboItemStyle_Bold
, then item style would be set non-bold but NOT disabled.
Return Value
Returns S_OK
if operation was successful or error code in other cases.