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.

EN_VSCROLLThis code specifies that the user has clicked the edit control's vertical scrollbar. The control's parent window receives this code through aWM_COMMAND message from the control; notification occurs beforethe screen is updated.Parameters wParam Contains the wParam parameter of the WM_ COMMANDmessage, and specifies the control ID.IParamContains an edit-control window handle in its low-order wordand the EN_ VSCROLL code in its high-order word.This message adds a string to the list box. If the list box is not sorted, thestring is added to the end of the list. If the list box is sorted, the string isinserted into the list after sorting.This message removes any existing list-box selections.Parameters wParam Is not used.Return valueCommentsIParamPoints to the null-terminated string that is to be added. If thelist box was created with an owner-draw style but without theLBS_HASSTRINGS style, the IParam parameter is an application-supplied32-bit value that is stored by the list boxinstead of the pointer to the string.The return value is the index to the string in the list box. The return valueis LB_ERR if an error occurs; the return value is LB_ERRSPACE ifinsufficient space is available to store the new string.If an owner-draw list box was created with the LBS_SORT style but notthe LBS_HASSTRINGS style, the WM_COMPAREITEM message is sentone or more times to the owner of the list box so the new item can beproperly placed in the list box.LB_DELETESTRINGThis message deletes a string from the list box.Parameters wParam Contains an index to the string that is to be deleted.IParam Is not used.Chapter 6, Messages directory 627

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

Saved successfully!

Ooh no, something went wrong!