CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Guest

    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


  2. #2
    Join Date
    May 1999
    Location
    Toulouse, France
    Posts
    171

    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.
    We're talking ****, 'cause life is a 'biz
    You know it is
    Everybody tryin' to get rich
    God ****!
    All I wanna do is live !

    KoRn, Children of the Korn

  3. #3
    Join Date
    May 1999
    Location
    Houston - TX - US
    Posts
    29

    Re: Please help ! How to add horizontal scroll bar to a list box.

    Hi ,
    Try

    ((CListBox *)GetDlgItem( IDC_MYLISTBOX))->SetHorizontalExtent( 1500 );


    Good Luck.
    Yash.





  4. #4
    Join Date
    Apr 1999
    Posts
    396

    Re: Please help ! How to add horizontal scroll bar to a list box.

    Create it with the WS_HSCROLL window style


  5. #5
    Guest

    Thank you all for helping ( David Chan )

    Thank you

    I have got the horizontal scroll bar to work usng SetHorizontalEx(.


    David Chan


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured