-
List box horizontal bar
Hi
I use MS Visual C++ , and I try to create with resource editor a List Box into a Dialog Box . I want my list box to have vertical and horizontal scroll bars. I choose both styles Horizontal Scroll and Vertical Scroll from List Box properties , but only the vertical scroll bar appears when I test it . Can anyone tell how I put and a vertical and an horizontal scroll bar in a List Box
Thanks
-
You need to set the horizontal width by sending a LB_SETHORIZONTALEXTENT message to a listbox control with the WS_HSCROLL style; the horizontal scrollbar will remain hidden unless the listbox width is less than the value you set with the message.