Scrolling Text Boxes

This is a discussion on Scrolling Text Boxes within the Windows Programming forums, part of the Platform Specific Boards category; I have a problem with text boxes that I can't seem to rectify by means of documentation, I cannot figure ...

  1. #1
    Registered User minime6696's Avatar
    Join Date
    Aug 2001
    Posts
    267

    Scrolling Text Boxes

    I have a problem with text boxes that I can't seem to rectify by means of documentation, I cannot figure out how to make them scroll. The particular instance I need to make them scroll in is when new text is added and I wish the box to be set to the _bottom_ of the text not the top (such as for logging and IM windows).

    Thanks a lot, ~SPH

    EDIT: Knowing this for list boxes would also be great!
    Last edited by minime6696; 11-29-2003 at 06:57 PM.

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,648
    Use EM_SETSEL to place the cursor where you want (like at the end).
    Use EM_SCROLLCARET to scroll the caret into view.

    Read about list boxes and their supporting messages here.

    gg

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Text positioning and Text scrolling
    By RealityFusion in forum C++ Programming
    Replies: 3
    Last Post: 08-13-2004, 12:35 AM
  2. List Boxes and Text Files
    By Daniel in forum Windows Programming
    Replies: 2
    Last Post: 07-02-2003, 04:16 PM
  3. Problem with static text in dialog boxes
    By Clyde in forum Windows Programming
    Replies: 11
    Last Post: 05-28-2002, 12:51 PM
  4. scrolling text
    By Shadow in forum C Programming
    Replies: 0
    Last Post: 05-20-2002, 09:56 PM
  5. scrolling text problem
    By Unregistered in forum C++ Programming
    Replies: 3
    Last Post: 03-12-2002, 08:05 PM

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