I have a CListCtrl, which has one column that holds strings. The list
auto-vertically scrolls just fine but when strings are longer then the
viewable area it adds ellipses on and doesn't auto scroll horizontally. I
want it to instead scroll horizontally so long strings can be read. I have
'no column header' set to true because I don't want it showing. The methods
I've tried using to get it to work are

m_ListCtrl.EnableScrollBarCtrl(SB_HORZ);
m_ListCtrl.ShowScrollBar(SB_HORZ);
m_ListCtrl.SetScrollRange(SB_HORZ, 0, 300);

Thanks for your help.
--
Jeremy T.
Software Engineer

Re: Horizontal Scrolling with a CListCtrl by Joćo

João
Tue Nov 09 16:34:55 CST 2004

I believe that you will have to increase the column header size in order to
achieve the effect you want.

--
João Paulo Figueira
Embedded MVP

"Jeremy T." <JeremyT@discussions.microsoft.com> wrote in message
news:288FC3CD-967A-4045-B505-138E4D90B15D@microsoft.com...
>I have a CListCtrl, which has one column that holds strings. The list
> auto-vertically scrolls just fine but when strings are longer then the
> viewable area it adds ellipses on and doesn't auto scroll horizontally. I
> want it to instead scroll horizontally so long strings can be read. I have
> 'no column header' set to true because I don't want it showing. The
> methods
> I've tried using to get it to work are
>
> m_ListCtrl.EnableScrollBarCtrl(SB_HORZ);
> m_ListCtrl.ShowScrollBar(SB_HORZ);
> m_ListCtrl.SetScrollRange(SB_HORZ, 0, 300);
>
> Thanks for your help.
> --
> Jeremy T.
> Software Engineer



Re: Horizontal Scrolling with a CListCtrl by JeremyT

JeremyT
Wed Nov 10 09:44:08 CST 2004

That did the trick. I had tried that before but hadn't made it wide enough.
Thanks.

"João Paulo Figueira [eMVP]" wrote:

> I believe that you will have to increase the column header size in order to
> achieve the effect you want.
>
> --
> João Paulo Figueira
> Embedded MVP
>
> "Jeremy T." <JeremyT@discussions.microsoft.com> wrote in message
> news:288FC3CD-967A-4045-B505-138E4D90B15D@microsoft.com...
> >I have a CListCtrl, which has one column that holds strings. The list
> > auto-vertically scrolls just fine but when strings are longer then the
> > viewable area it adds ellipses on and doesn't auto scroll horizontally. I
> > want it to instead scroll horizontally so long strings can be read. I have
> > 'no column header' set to true because I don't want it showing. The
> > methods
> > I've tried using to get it to work are
> >
> > m_ListCtrl.EnableScrollBarCtrl(SB_HORZ);
> > m_ListCtrl.ShowScrollBar(SB_HORZ);
> > m_ListCtrl.SetScrollRange(SB_HORZ, 0, 300);
> >
> > Thanks for your help.
> > --
> > Jeremy T.
> > Software Engineer
>
>
>