13.07.2015 Views

REFERENCE GUIDE

REFERENCE GUIDE

REFERENCE GUIDE

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

LB_GETSELITEMSReturn valueIParamContains a long pointer to a buffer large enough for thenumber of integers specified by the wParam parameter.The return value is the actual number of items placed in the buffer. If thelist box is a single-selection list box, the return value is LB_ERR.LB_GEnEXTThis message copies a string from the list into a buffer.Parameters wParam Contains the index of the string to be copied.Return valueCommentsIParamPoints to the buffer that is to receive the string. The buffer musthave both sufficient space for the string and a terminating nullcharacter.The return value is the length of the string (in bytes), excluding theterminating null character. The return value is LB_ERR if the wParamparameter is not a valid index.If the list box was created with an owner-draw style but without theLBS_HASSTRINGS style, the buffer pointed to by the IParam parameter ofthe message receives the 32-bit value associated with the item through theIParam parameter of the LB_ADDSTRING or LB_INSERTSTRINGmessage.LB_GEnEXTLENThis message returns the length of a string in the list box.Parameters wParam Contains an index to the string.Return valueIParamIs not used.The return value is the length of the string (in bytes), excluding theterminating null character. The return value is LB_ERR if an error occurs.LB_GEnOPINDEX 3.0This message returns the index of the first visible item in a list box.Initially, item 0 is at the top of the list box, but if the list box is scrolled,another item may be at the top.Parameters wParam Not used.632Software development kit

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!