About Scroll bar, please help

This is a discussion on About Scroll bar, please help within the Windows Programming forums, part of the Platform Specific Boards category; I am writing a notepad and the picture is my work my problem is: when I resize the window, the ...

  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 ?
    Attached Images Attached Images  
    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, 12:32 PM
  2. Bitmap with a scroll bar
    By SuperNewbie in forum Windows Programming
    Replies: 1
    Last Post: 10-29-2003, 10:36 PM
  3. no horizontal scroll bar?
    By scott27349 in forum C++ Programming
    Replies: 0
    Last Post: 03-16-2002, 09:41 PM
  4. Problem with Scroll Bar
    By Garfield in forum Windows Programming
    Replies: 8
    Last Post: 11-05-2001, 04:34 AM
  5. Problem with Scroll Bar
    By Garfield in forum Windows Programming
    Replies: 3
    Last Post: 11-01-2001, 01:23 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21