// JP opened flex table

Click to See Complete Forum and Search --> : problem:LISTBOX send LB_SETSEL message ,set the first line initially


aneird
September 6th, 2007, 10:04 AM
build listbox window:
hwndList = CreateWindow("LISTBOX",
"",
WS_CHILD| WS_VISIBLE|LBS_NOINTEGRALHEIGHT|WS_VSCROLL|LBS_OWNERDRAWFIXED|LBS_NOTIFY|LBS_MULTIPLESEL ,
0, 0, 0, 0, hWnd, NULL, hHistoryInst, NULL);

set the first line:
SendMessage(hwndList , LB_SETSEL , (WPARAM)TRUE , (LPARAM)0);

but the result has problem!
the be set line not show,as the result that click the downarrow VSCROLL one times !

aneird
September 6th, 2007, 09:16 PM
May be send message LB_SETSEL(set the first line) before building the list ?

//JP added flex table