var<br> I: Integer;<br> LBHwnd: THandle;<br> S: string;<br>begin<br> LBHwnd := CreateWindow('ListBox', nil, WS_CHILD or WS_VISIBLE or LBS_MULTICOLUMN,<br> 0, 0, 200, 300, Handle, 0, HInstance, nil);<br> SendMessage(LBHwnd, LB_SETCOLUMNWIDTH, 100, 0);<br> for I := 0 to 30 do<br> begin<br> S := Format('String %d', );<br> SendMessage(LBHwnd, LB_ADDSTRING, 0, Integer(Pointer(S)));<br> end;<br>end;<br><br>Following are the messages used with list boxes. <br><br>LB_ADDFILE<br>LB_ADDSTRING<br>LB_DELETESTRING<br>LB_DIR<br>LB_FINDSTRING<br>LB_FINDSTRINGEXACT<br>LB_GETANCHORINDEX<br>LB_GETCARETINDEX<br>LB_GETCOUNT<br>LB_GETCURSEL<br>LB_GETHORIZONTALEXTENT<br>LB_GETITEMDATA<br>LB_GETITEMHEIGHT<br>LB_GETITEMRECT<br>LB_GETLOCALE<br>LB_GETSEL<br>LB_GETSELCOUNT<br>LB_GETSELITEMS<br>LB_GETTEXT<br>LB_GETTEXTLEN<br>LB_GETTOPINDEX<br>LB_INITSTORAGE<br>LB_INSERTSTRING<br>LB_ITEMFROMPOINT<br>LB_RESETCONTENT<br>LB_SELECTSTRING<br>LB_SELITEMRANGE<br>LB_SELITEMRANGEEX<br>LB_SETANCHORINDEX<br>LB_SETCARETINDEX<br>LB_SETCOLUMNWIDTH<br>LB_SETCOUNT<br>LB_SETCURSEL<br>LB_SETHORIZONTALEXTENT<br>LB_SETITEMDATA<br>LB_SETITEMHEIGHT<br>LB_SETLOCALE<br>LB_SETSEL<br>LB_SETTABSTOPS<br>LB_SETTOPINDEX<br>LBN_DBLCLK<br>LBN_ERRSPACE<br>LBN_KILLFOCUS<br>LBN_SELCANCEL<br>LBN_SELCHANGE<br>LBN_SETFOCUS<br>WM_CHARTOITEM<br>WM_CTLCOLORLISTBOX<br>WM_DELETEITEM<br>WM_VKEYTOITEM <br>