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 !
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 !