Sets a single item in a standard single item list box.
cSetLBItem( hwnd, item)
(i) hwnd Listbox handle from a cWndBy... function.
(i) item Item number to set (first one is 1).
(i) 1 if successful, 0 on failure.
This function is designed to set a single item in a standard single item list box. It will not work with a multiple selection listbox.
AddExtender("wwctl44i.dll",0,"wwctl64i.dll") ;Note: This example designed for Windows 95 Run("rundll32.exe", "shell32.dll,Control_RunDLL netcpl.cpl") netwnd=DllHwnd("Network") cfghwnd= cWndbyname(netwnd,"Configuration") lbWnd=cWndbyid(cfghwnd,404) response=cGetLbText(lbwnd) dialup=ItemLocate("TCP/IP -> Dial-Up Adapter", response, @TAB) If dialup==0 Message("TCP/IP Dialup Adapter","Not Found") Else cSetLbItem(lbwnd,dialup) Message("TCP/IP Dialup Adpater","Selected") EndIf Exit