Click here to Skip to main content
15,897,166 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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[how to] multi-language/unicode application Pin
zecodela10-May-03 23:00
zecodela10-May-03 23:00 
GeneralRe: [how to] multi-language/unicode application Pin
Ted Ferenc11-May-03 1:21
Ted Ferenc11-May-03 1:21 
GeneralRe: [how to] multi-language/unicode application Pin
zecodela11-May-03 2:59
zecodela11-May-03 2:59 
GeneralRe: [how to] multi-language/unicode application Pin
Ted Ferenc11-May-03 4:08
Ted Ferenc11-May-03 4:08 
GeneralRe: [how to] multi-language/unicode application Pin
zecodela11-May-03 7:05
zecodela11-May-03 7:05 
GeneralRe: [how to] multi-language/unicode application Pin
Ted Ferenc11-May-03 7:16
Ted Ferenc11-May-03 7:16 
GeneralRe: [how to] multi-language/unicode application Pin
zecodela11-May-03 23:36
zecodela11-May-03 23:36 
GeneralRe: [how to] multi-language/unicode application Pin
Ted Ferenc12-May-03 0:06
Ted Ferenc12-May-03 0:06 
GeneralRe: [how to] multi-language/unicode application Pin
zecodela12-May-03 0:58
zecodela12-May-03 0:58 
GeneralRe: [how to] multi-language/unicode application Pin
Anonymous12-May-03 3:46
Anonymous12-May-03 3:46 
GeneralPassing a va_list to printf Pin
Jo Fredrickson10-May-03 20:37
Jo Fredrickson10-May-03 20:37 
GeneralRe: Passing a va_list to printf Pin
Johnny ²10-May-03 21:30
Johnny ²10-May-03 21:30 
GeneralRe: Passing a va_list to printf Pin
Jo Fredrickson10-May-03 22:15
Jo Fredrickson10-May-03 22:15 
QuestionPossible solutions to my problem? Pin
georgiek5010-May-03 17:40
georgiek5010-May-03 17:40 
AnswerRe: Possible solutions to my problem? Pin
G. Steudtel12-May-03 1:50
G. Steudtel12-May-03 1:50 
GeneralDialog box Handle where to find it Pin
WinNewbie10-May-03 15:24
sussWinNewbie10-May-03 15:24 
GeneralRe: Dialog box Handle where to find it Pin
Michael Dunn10-May-03 17:12
sitebuilderMichael Dunn10-May-03 17:12 

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.