Click to Rate and Give Feedback
MSDN
MSDN Library
User Interface
TSF Reference
TSF Interfaces
ITfCandidateList
 ITfCandidateList::SetResult Method

  Switch on low bandwidth view
ITfCandidateList::SetResult Method

Syntax

HRESULT SetResult(
  [in]  ULONG nIndex,
  [in]  TfCandidateResult imcr
);

Parameters

nIndex [in]

Specifies the zero-based index of the candidate string to set the result for. This parameter is ignored if imcr contains CAND_CANCELED.

imcr [in]

Contains one of the TfCandidateResult values that specifies the result of the reconversion operation.

Return Value

The method can return one of the following values.

ValueDescription

S_OK

The method was successful.

E_FAIL

An unspecified error occurred.

Remarks

A typical reconversion operation would include the following operations.

  1. A list of candidates is obtained and displayed to the user in a dialog box.
  2. When the user selects a candidate, but before the dialog box is dismissed, ITfCandidateList::SetResult is called with the index of the newly selected candidate and CAND_SELECTED.
  3. If a different candidate is selected, ITfCandidateList::SetResult is called agian with the index of the newly selected candidate and CAND_SELECTED.
  4. If the user chooses to accept the new candidate, ITfCandidateList::SetResult is called with the index of the currently selected candidate and CAND_FINALIZED.
  5. If the user cancels the dialog, ITfCandidateList::SetResult is called with an index of zero and CAND_CANCELED.

Requirements

ClientRequires Windows XP, Windows 2000 Professional, or Windows NT Workstation.
RedistributableRequires TSF 1.0 on Windows NT 4.0, Windows 2000 Professional and Windows MeWindows 98.
HeaderDeclared in Ctffunc.idl and Ctffunc.h.
DLLRequires Tiptsf.dll.

See Also

ITfCandidateList
TfCandidateResult


Send comments about this topic to Microsoft

Build date: 12/17/2008

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker