Thread: List box horizontal bar

  1. #1
    Registered User
    Join Date
    Jul 2004
    Posts
    20

    List box horizontal bar

    Hi

    I use MS Visual C++ , and I try to create with resource editor a List Box into a Dialog Box . I want my list box to have vertical and horizontal scroll bars. I choose both styles Horizontal Scroll and Vertical Scroll from List Box properties , but only the vertical scroll bar appears when I test it . Can anyone tell how I put and a vertical and an horizontal scroll bar in a List Box

    Thanks

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    You need to set the horizontal width by sending a LB_SETHORIZONTALEXTENT message to a listbox control with the WS_HSCROLL style; the horizontal scrollbar will remain hidden unless the listbox width is less than the value you set with the message.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Following CTools
    By EstateMatt in forum C Programming
    Replies: 5
    Last Post: 06-26-2008, 10:10 AM
  2. Reverse function for linked list
    By Brigs76 in forum C++ Programming
    Replies: 1
    Last Post: 10-25-2006, 10:01 AM
  3. New Theme
    By XSquared in forum A Brief History of Cprogramming.com
    Replies: 160
    Last Post: 04-01-2004, 08:00 PM
  4. problem with structures and linked list
    By Gkitty in forum C Programming
    Replies: 6
    Last Post: 12-12-2002, 06:40 PM
  5. Contest Results - May 27, 2002
    By ygfperson in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 06-18-2002, 01:27 PM