Thread: About Scroll bar, please help

  1. #1
    Registered User
    Join Date
    Jul 2002
    Posts
    85

    About Scroll bar, please help

    I am writing a notepad and the picture is my work
    my problem is: when I resize the window, the positions of scrollbars don't move.

    How do I solve this problem ?
    Last edited by Kelvin; 08-04-2002 at 08:58 PM.

  2. #2
    Registered User
    Join Date
    Jul 2002
    Posts
    85

    Re: About Scroll bar, please help

    and when the window created, the positions of scrollbars are not align to right and bottom.......

  3. #3
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    If you create your window with the WS_VSCROLL|WS_HSCROLL styles, windows will ensure the scrollbars are positioned correctly when you resize the window. If you must use scrollbars controls then handle the WM_SIZE message for the parent window; use MoveWindow, or SetWindowPos if you prefer, to reposition them.

  4. #4
    Registered User
    Join Date
    Jul 2002
    Posts
    85
    Thanks !
    I do it by SetWindowPos
    Really thanks!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. beach bar (sims type game)
    By DrKillPatient in forum Game Programming
    Replies: 1
    Last Post: 03-06-2006, 01:32 PM
  2. Bitmap with a scroll bar
    By SuperNewbie in forum Windows Programming
    Replies: 1
    Last Post: 10-29-2003, 11:36 PM
  3. no horizontal scroll bar?
    By scott27349 in forum C++ Programming
    Replies: 0
    Last Post: 03-16-2002, 10:41 PM
  4. Problem with Scroll Bar
    By Garfield in forum Windows Programming
    Replies: 8
    Last Post: 11-05-2001, 05:34 AM
  5. Problem with Scroll Bar
    By Garfield in forum Windows Programming
    Replies: 3
    Last Post: 11-01-2001, 02:23 PM