Click here to Skip to main content
15,906,567 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: printf and unicode Pin
Matt Newman12-May-03 4:27
Matt Newman12-May-03 4:27 
Generala basic dll question Pin
transoft11-May-03 6:52
transoft11-May-03 6:52 
GeneralRe: a basic dll question Pin
Nish Nishant11-May-03 7:49
sitebuilderNish Nishant11-May-03 7:49 
GeneralRe: a basic dll question Pin
transoft11-May-03 8:19
transoft11-May-03 8:19 
GeneralRe: a basic dll question Pin
Matt Newman11-May-03 9:06
Matt Newman11-May-03 9:06 
Generalencrypted binary variable Pin
noxon11-May-03 6:03
noxon11-May-03 6:03 
GeneralRe: encrypted binary variable Pin
Nish Nishant11-May-03 7:44
sitebuilderNish Nishant11-May-03 7:44 
GeneralRe: encrypted binary variable Pin
noxon11-May-03 8:52
noxon11-May-03 8:52 
Generalcompiling with gcc or g++ in unix Pin
Themis11-May-03 5:21
Themis11-May-03 5:21 
GeneralRe: compiling with gcc or g++ in unix Pin
Nick Parker11-May-03 5:32
protectorNick Parker11-May-03 5:32 
GeneralRe: compiling with gcc or g++ in unix Pin
Baris Kurtlutepe11-May-03 5:33
Baris Kurtlutepe11-May-03 5:33 
Generalhi Pin
kuhx198011-May-03 3:09
kuhx198011-May-03 3:09 
GeneralRe: hi Pin
kuhx198011-May-03 3:10
kuhx198011-May-03 3:10 
GeneralProblem with Thread and Main Window Pin
Atlence11-May-03 1:59
Atlence11-May-03 1:59 
GeneralRe: Problem with Thread and Main Window Pin
User 665811-May-03 2:10
User 665811-May-03 2:10 
GeneralRe: Problem with Thread and Main Window Pin
Neville Franks11-May-03 2:26
Neville Franks11-May-03 2:26 
GeneralRe: Problem with Thread and Main Window Pin
Atlence11-May-03 6:30
Atlence11-May-03 6:30 
GeneralRe: Problem with Thread and Main Window Pin
Nish Nishant11-May-03 4:24
sitebuilderNish Nishant11-May-03 4:24 
GeneralRe: Problem with Thread and Main Window Pin
valikac11-May-03 6:15
valikac11-May-03 6:15 
GeneralRe: Problem with Thread and Main Window Pin
Neville Franks11-May-03 8:45
Neville Franks11-May-03 8:45 
GeneralTextOut problems Pin
franklyflee11-May-03 0:36
franklyflee11-May-03 0:36 
GeneralRe: TextOut problems Pin
franklyflee11-May-03 1:04
franklyflee11-May-03 1:04 
GeneralRe: TextOut problems Pin
Joe Woodbury11-May-03 6:23
professionalJoe Woodbury11-May-03 6:23 
GeneralRe: TextOut problems Pin
franklyflee11-May-03 6:38
franklyflee11-May-03 6:38 
GeneralRe: TextOut problems Pin
Joe Woodbury11-May-03 6:52
professionalJoe Woodbury11-May-03 6:52 
Use wsprintf and store each line in a CStringArray. You'll need to do this anyway if you want to refresh the screen.

Maintain an index into this array of the top line.

As you write the lines, if the next line will overlap the bottom of the view, you'll need to shift the existing lines up and write the new line where the previous bottom line was. (I suggest precalculating this using GetTextExtent() at start and whenever the view size is changed.)

To scroll the contents up, use CDC::ScrollDC().

(If you're going to have lots of text, you may want to virtualize the above list, though you would still want to buffer up what's actually being displayed.)

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.