다음을 통해 공유


ScriptStringCPtoX (Windows CE 5.0)

Send Feedback

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

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

Parameters

  • ssa
    [in] A SCRIPT_STRING_ANALYSIS structure for the string.
  • 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 Values

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

OS Versions: Windows CE 5.0 and later.
Header: Usp10.h.
Link Library: Uspce.lib.

See Also

SCRIPT_STRING_ANALYSIS

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.