Skip to content

Latest commit

 

History

History
71 lines (58 loc) · 2.14 KB

nf-windowsx-listbox_addstring.md

File metadata and controls

71 lines (58 loc) · 2.14 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:windowsx.ListBox_AddString
ListBox_AddString macro (windowsx.h)
Adds a string to a list box.
ListBox_AddString
ListBox_AddString macro [Windows Controls]
_win32_ListBox_AddString
_win32_ListBox_AddString_cpp
controls.ListBox_AddString
controls._win32_ListBox_AddString
windowsx/ListBox_AddString
controls\ListBox_AddString.htm
Controls
VS|Controls|~\controls\listboxes\listboxreference\listboxmacros\listbox_addstring.htm
12/05/2018
ListBox_AddString, ListBox_AddString macro [Windows Controls], _win32_ListBox_AddString, _win32_ListBox_AddString_cpp, controls.ListBox_AddString, controls._win32_ListBox_AddString, windowsx/ListBox_AddString
windowsx.h
Windows
Windows Vista [desktop apps only]
Windows Server 2003 [desktop apps only]
Windows
19H1
ListBox_AddString
windowsx/ListBox_AddString
c++
APIRef
kbSyntax
HeaderDef
Windowsx.h
ListBox_AddString

ListBox_AddString macro

-description

Adds a string to a list box. If the list box does not have the LBS_SORT style, the string is added to the end of the list. Otherwise, the string is inserted into the list and the list is sorted. You can use this macro or send the LB_ADDSTRING message explicitly.

-parameters

-param hwndCtl

Type: HWND

A handle to the control.

-param lpsz

Type: LPCSTR

The string to add.

-remarks

For more information, see LB_ADDSTRING.