Thread: Setting the scrollbar's slider height - you'd think it'd be easy enough

  1. #1
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158

    Setting the scrollbar's slider height - you'd think it'd be easy enough

    Apologies for the newbie-like question, but even Google yeilds nothing...

    How would one set the height of the slider of a scrollbar?
    For example, in my browser window, I see a huge slider bar. As the window's content becomes longer, the slider will get smaller.
    However, in my application, the slider is always as high as it is wide, regardless of the min position and max position assigned to the bar (my content length).

    Thanks,
    Yarin

  2. #2
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    Nevermind; I got it.

    Use the nPage member of struct SCROLLINFO, and pass it to SetScrollInfo().

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Button handler
    By Nephiroth in forum Windows Programming
    Replies: 8
    Last Post: 03-12-2006, 06:23 AM
  2. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  3. Height
    By Zewu in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 04-20-2003, 04:27 PM
  4. Ok, Structs, I need help I am not familiar with them
    By incognito in forum C++ Programming
    Replies: 7
    Last Post: 06-29-2002, 09:45 PM
  5. Outputting String arrays in windows
    By Xterria in forum Game Programming
    Replies: 11
    Last Post: 11-13-2001, 07:35 PM