Thread: sending messages to a scrollbar

  1. #1
    Registered User stormbringer's Avatar
    Join Date
    Jul 2002
    Posts
    90

    sending messages to a scrollbar

    hi

    i have a scrollbar for an error-log output area on the main window. now i want that everytime the contet of that area is updated, the srcollbar goes to the BOTTOM (with the content moving also). i thought easyest would be, simply sending the scrollbar a message that it should scroll to the last position. (it then would send a message to the main window, which moves the contet.) I tried

    SendMessage(hwndErrorScroll,WM_VSCROLL,SB_BOTTOM,0 L);

    , but the scrollbar isn't moving.

    any help?

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    Try using SetScrollInfo.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Sending 'Messages' between objects
    By Swordsalot in forum C++ Programming
    Replies: 4
    Last Post: 07-05-2006, 10:00 PM
  2. Sending windows messages
    By Ideswa in forum Windows Programming
    Replies: 2
    Last Post: 03-02-2006, 01:27 PM
  3. problem with sending BN_CLICK messages
    By Bozyo in forum Windows Programming
    Replies: 3
    Last Post: 08-11-2004, 12:35 AM
  4. Sending Messages to ie Frame
    By jayc6811 in forum Windows Programming
    Replies: 0
    Last Post: 10-24-2002, 04:40 PM
  5. Edit controls not sending messages to parent window
    By EMiller in forum Windows Programming
    Replies: 5
    Last Post: 11-13-2001, 11:03 PM