• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 202
  • Last Modified:

how to scroll a text in a window without using scrollbar?

There's some static text displayed in the window. I need to make a string keep scrolling at the bottom of the window, below this text. How to do it?
-Grace
0
GraceV
Asked:
GraceV
1 Solution
 
PacmanCommented:
draw the text and move it one pixel to the left each time.
You can trigger it within a timer function.
0
 
AndrianCommented:
Use CEdit with options WS_DISABLED* | NOT WS_BORDER and you can set your cursor at the end like this:

CEdit ::GetWindowText(strText);
iLen=strText.GetLength();
CEdit ::SetSel(iLen,iLen);
0
 
Roshan DavisCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Answered by : Andrian

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Roshan Davis
EE Cleanup Volunteer
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now