Re: Making a CListBox have horizontal ScrollBars???




"Peter Olcott" <NoSpam@xxxxxxxxxxxxx> wrote in message
news:e%voj.8413$Mg7.310@xxxxxxxxxxxxxxx
I made a CListBox that is filled with CStrings, and some of these CStrings
are longer than the DialogBox width. I would like to provide the option of
horizontally scrolling these items. I tried several combinations of
properties, and none of them seem to work. Does anyone know how to do this?


You have to call CListBox::SetHorizontalExtent(). See
http://support.microsoft.com/kb/q146437/ for a derived class that does all
this for you. It's great.

-- David


.