IPXV_Inst::CreateStdPresetsCallbacks Method
From PDF XChange PDF SDK
m (Automatic page editing by robot) |
m (Automatic page editing by robot) |
||
Line 8: | Line 8: | ||
== Syntax == | == Syntax == | ||
− | <pre class="brush:cpp;gutter:false">HRESULT CreateStdPresetsCallbacks([in] BSTR | + | <pre class="brush:cpp;gutter:false">HRESULT CreateStdPresetsCallbacks([in] BSTR PathToPresetsArr, |
− | [in] IPXV_PresetsIoCallbacks* | + | [in] IPXV_PresetsIoCallbacks* CustomIoCallbacks, |
− | [in, defaultvalue(NULL)] ICab* | + | [in, defaultvalue(NULL)] ICab* CustomStorage, |
− | [in, defaultvalue(0)] LONG | + | [in, defaultvalue(0)] LONG ListStyle, |
− | [out, retval] IPXV_PresetsListCallbacks** | + | [out, retval] IPXV_PresetsListCallbacks** Res);</pre> |
== Parameters == | == Parameters == | ||
− | ; | + | ;PathToPresetsArr |
:[in] Specifies path to presets node in global or custom storage of parameters. | :[in] Specifies path to presets node in global or custom storage of parameters. | ||
− | ; | + | ;CustomIoCallbacks |
:[in] The optional pointer to [[PXV:IPXV_PresetsIoCallbacks|IPXV_PresetsIoCallbacks]]. You may implement this callback and pass here to have a possibility to intercept some notifications about changing of presets database. | :[in] The optional pointer to [[PXV:IPXV_PresetsIoCallbacks|IPXV_PresetsIoCallbacks]]. You may implement this callback and pass here to have a possibility to intercept some notifications about changing of presets database. | ||
− | ; | + | ;CustomStorage |
:[in, defaultvalue(NULL)] Pointer to [[PXV:ICab|ICab]] object that must be a database of settings presets with special predefined structure. | :[in, defaultvalue(NULL)] Pointer to [[PXV:ICab|ICab]] object that must be a database of settings presets with special predefined structure. | ||
− | ; | + | ;ListStyle |
:[in, defaultvalue(0)] The set of [[PXV:PXV_PresetsListStyleFlags|PXV_PresetsListStyleFlags]] to customize displaying in UI the preset-items and to setup special edit-restrictions for end-user. | :[in, defaultvalue(0)] The set of [[PXV:PXV_PresetsListStyleFlags|PXV_PresetsListStyleFlags]] to customize displaying in UI the preset-items and to setup special edit-restrictions for end-user. | ||
− | ; | + | ;Res |
:[out, retval] Returns pointer to a new [[PXV:IPXV_PresetsListCallbacks|IPXV_PresetsListCallbacks]] object. | :[out, retval] Returns pointer to a new [[PXV:IPXV_PresetsListCallbacks|IPXV_PresetsListCallbacks]] object. | ||
Revision as of 07:31, 12 June 2015
Creates new object that implements IPXV_PresetsListCallbacks interface in standard way and provides access to the settings presets database.
Syntax
HRESULT CreateStdPresetsCallbacks([in] BSTR PathToPresetsArr, [in] IPXV_PresetsIoCallbacks* CustomIoCallbacks, [in, defaultvalue(NULL)] ICab* CustomStorage, [in, defaultvalue(0)] LONG ListStyle, [out, retval] IPXV_PresetsListCallbacks** Res);
Parameters
- PathToPresetsArr
- [in] Specifies path to presets node in global or custom storage of parameters.
- CustomIoCallbacks
- [in] The optional pointer to IPXV_PresetsIoCallbacks. You may implement this callback and pass here to have a possibility to intercept some notifications about changing of presets database.
- CustomStorage
- [in, defaultvalue(NULL)] Pointer to ICab object that must be a database of settings presets with special predefined structure.
- ListStyle
- [in, defaultvalue(0)] The set of PXV_PresetsListStyleFlags to customize displaying in UI the preset-items and to setup special edit-restrictions for end-user.
- Res
- [out, retval] Returns pointer to a new IPXV_PresetsListCallbacks object.
Return Value
Returns S_OK if operation was successful or error code in other cases.