Re: Making a CListBox have horizontal ScrollBars???
- From: "David Ching" <dc@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 31 Jan 2008 19:48:06 -0800
"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
.
- References:
- Making a CListBox have horizontal ScrollBars???
- From: Peter Olcott
- Making a CListBox have horizontal ScrollBars???
- Prev by Date: Re: Upgrading from C++ 6.0
- Next by Date: Re: CoCreateInstance() returns E_OUTOFMEMORY
- Previous by thread: Making a CListBox have horizontal ScrollBars???
- Index(es):