Partager via


ScriptStringCPtoX (Windows Embedded CE 6.0)

1/6/2010

This function returns the x-coordinate for the leading or trailing edge of a character position.

Syntax

HRESULT WINAPI ScriptStringCPtoX(
  SCRIPT_STRING_ANALYSIS ssa, 
  int icp, 
  BOOL fTrailing, 
  int* pX 
);

Parameters

  • icp
    [in] Character position in the string.
  • fTrailing
    [in] Indicates the edge of the icp that corresponds to the x coordinate. If TRUE, it indicates the trailing edge. If FALSE, it indicates the leading edge.
  • pX
    [out] Pointer to a variable that receives the corresponding x coordinate for the icp.

Return Value

If the function succeeds, 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