Hello all
im trying to implement horizontal scrollbar in listbox windows
with out any success
this is how my create list box looks like :
and it does create the scroll bar , but when i try to capture the event (WM_HSCROLL)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);
that looks like this :
but the scroll bar does not moving any where when i click or try to move it to the right .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); }
what im missing here ?



LinkBack URL
About LinkBacks



