Hello all
im trying to implement horizontal scrollbar in listbox windows
with out any success
this is how my create list box looks like :
Code:
// Create a child listbox control.
hWndList = CreateWindowEx(0,
"Listbox",
"",
WS_CHILD | WS_VISIBLE | WS_HSCROLL | WS_VSCROLL | LBS_NOINTEGRALHEIGHT,
0,
0,
CW_USEDEFAULT,
CW_USEDEFAULT,
hWndMain,
NULL,
hinstance,
NULL);
and it does create the scroll bar , but when i try to capture the event (WM_HSCROLL)
that looks like this :
Code:
case WM_HSCROLL:
{
int nScrollCode = (int) LOWORD(wParam); // scroll bar value
int nPos = (short int) HIWORD(wParam); // scroll box position
SetScrollPos(hWndList,
nScrollCode,
nPos,
true);
}
but the scroll bar does not moving any where when i click or try to move it to the right .
what im missing here ?