Thread: Scrolling Text Boxes

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

    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 07:57 PM.

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    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.


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, 09:05 PM