Share via


SPNM_INSERTSTRING (Compact 2013)

3/28/2014

This message inserts a string into a spinner control.

Syntax

SPNM_INSERTSTRING
    wParam = (WPARAM) index;
    lParam = (LPARAM)(LPCTSTR) lpszString;

Parameters

  • index
    Zero-based index of the position at which to insert the string. If this parameter is -1, the string is added to the end of the spinner control.
  • lpszString
    Long pointer to the null-terminated string to be inserted. The spinner control will only store up to 260 characters (MAX_PATH) per item.

Return Value

On success, returns the index of the position at which the string was inserted. On failure, returns SPN_ERR, indicating that an error has occurred.

Requirements

Header

shellctrls.h

See Also

Reference

Spinner Controls Messages
SPNM_DELETESTRING
SPNM_ADDSTRING