Compartilhar via


ScriptStringXtoCP (Windows Embedded CE 6.0)

1/6/2010

This function converts an x-coordinate to a character position.

Syntax

HRESULT WINAPI ScriptStringXtoCP(
  SCRIPT_STRING_ANALYSIS ssa, 
  int iX, 
  int* piCh, 
  int* piTrailing 
);

Parameters

  • iX
    [in] Specifies the x coordinate.
  • piCh
    [out] Pointer to a variable that receives the character position corresponding to iX.
  • piTrailing
    [out] Pointer to a variable that receives an indicator whether the position is the leading or trailing edge of the character.

Return Value

If the function is successful, it returns S_OK.

If the function fails, it returns an HRESULT.

The return value can be tested with the SUCCEEDED and FAILED macros.

Requirements

Header usp10.h
Library Uspce.lib
Windows Embedded CE Windows CE 5.0 and later

See Also

Reference

SCRIPT_STRING_ANALYSIS

Other Resources

Uniscribe Functions