IUIX_Dialog::GetItemSel Method
From PDF XChange PDF SDK
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | __NOTOC__ | ||
[[Category:Editor]] | [[Category:Editor]] | ||
{{#customTitle:IUIX_Dialog::GetItemSel Method}} | {{#customTitle:IUIX_Dialog::GetItemSel Method}} | ||
− | {{#parentPage:PXV:IUIX_Dialog|GetItemSel | + | {{#parentPage:PXV:IUIX_Dialog#Methods|GetItemSel|method}} |
− | + | ||
− | |||
− | + | Gets currently selected item in a list of a dialog object. | |
+ | |||
+ | Dialog object is selected via its text ID and must implement [[PXV:IUIX_List|IUIX_List]] or [[PXV:IUIX_Combo|IUIX_Combo]] interface. | ||
== Syntax == | == Syntax == | ||
− | <pre class="brush:cpp;gutter:false">HRESULT GetItemSel([in] BSTR | + | <pre class="brush:cpp;gutter:false">HRESULT GetItemSel([in] BSTR sItemID, |
− | [out, retval] LONG* | + | [out, retval] LONG* nCurSel);</pre> |
== Parameters == | == Parameters == | ||
− | ; | + | ;sItemID |
:[in] text ID of a required object in a dialog. | :[in] text ID of a required object in a dialog. | ||
− | ; | + | ;nCurSel |
− | :[out, retval] number of | + | :[out, retval] number of a selected item in a list. |
== Return Value == | == Return Value == | ||
− | Returns S_OK if operation was successful or error code | + | Returns S_OK if the operation was successful, or will return an error code if it fails. |
== See Also == | == See Also == | ||
− | + | [[PXV:IUIX_Dialog|IUIX_Dialog]] |
Latest revision as of 14:16, 15 June 2015
Gets currently selected item in a list of a dialog object.
Dialog object is selected via its text ID and must implement IUIX_List or IUIX_Combo interface.
Syntax
HRESULT GetItemSel([in] BSTR sItemID, [out, retval] LONG* nCurSel);
Parameters
- sItemID
- [in] text ID of a required object in a dialog.
- nCurSel
- [out, retval] number of a selected item in a list.
Return Value
Returns S_OK if the operation was successful, or will return an error code if it fails.