Please help ! How to add horizontal scroll bar to a list box.
Hello,
Can anyone tell me how to add a horizontal scroll bar to a list box in
my dialog.
Thank you very much.
David Chan
Re: Please help ! How to add horizontal scroll bar to a list box.
Have a look on this site at http://www.codeguru.com/controls/listbox_extent.shtml
HTH
K.
Ash to ash and clay to clay, if the enemy doesn't get you, your own folk may.
Re: Please help ! How to add horizontal scroll bar to a list box.
Hi ,
Try
((CListBox *)GetDlgItem( IDC_MYLISTBOX))->SetHorizontalExtent( 1500 );
Good Luck.
Yash.
Re: Please help ! How to add horizontal scroll bar to a list box.
Create it with the WS_HSCROLL window style
Thank you all for helping ( David Chan )
Thank you
I have got the horizontal scroll bar to work usng SetHorizontalEx(.
David Chan