次の方法で共有


SPNM_GETTEXT (Compact 2013)

3/28/2014

This message retrieves a string from a spinner control.

Syntax

SPNM_GETTEXT
    wParam = (WPARAM) index;
    lParam = (LPARAM)(LPCTSTR) lpszBuffer;

Parameters

  • index
    Zero-based index of the string to retrieve.
  • lpszBuffer
    Long pointer to the buffer to receive the string. The buffer must have sufficient space for the string and a terminating null character.

    The application can send a SPNM_GETTEXTLEN message to retrieve the length of the string in characters.

Return Value

On success, returns the length of the string in characters, excluding the terminating NULL character. On failure, returns SPN_ERR, indicating that index does not specify a valid string index.

Requirements

Header

shellctrls.h

See Also

Reference

Spinner Controls Messages
SPNM_GETTEXTLEN