Partager via


PHCreateTextDisplayItem (Windows Embedded CE 6.0)

1/6/2010

This function creates a textual display item for use in a listbox control, including a tooltip if necessary. A text display item is a standard "display item" that the custom listbox control understands. It is simply an item that has text on a correct background.

Syntax

HRESULT  PHCreateTextDisplayItem(
    WCHAR* pText,
    IVoIPDisplayItem** ppItem
);

Parameters

  • pText
    [in] Text string to display.

Return Value

This control returns an HRESULT to indicate success or failure. The following table shows additional possible return values.

Value Description

E_INVALIDARG

The pointer to the IVoIPDisplayItem is invalid.

E_OUTOFMEMORY

There is insufficient memory to create the new item.

Remarks

Note

This documentation applies to functionality implemented in sample code for PhCommon. For more information, see PhCommon Reference.

Requirements

Header controldefinitions.h
Library PhCommon.dll
Windows Embedded CE Windows Embedded CE 6.0 and later

See Also

Reference

PhCommon Controls APIs
PhCommon Reference
IVoIPDisplayItem