Click here to Skip to main content
15,889,216 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: PeekMessage and Sleep in a multi-thread environment Pin
Bob Stanneveld19-Sep-05 1:10
Bob Stanneveld19-Sep-05 1:10 
GeneralRe: PeekMessage and Sleep in a multi-thread environment Pin
almc19-Sep-05 1:37
almc19-Sep-05 1:37 
GeneralRe: PeekMessage and Sleep in a multi-thread environment Pin
Bob Stanneveld19-Sep-05 1:47
Bob Stanneveld19-Sep-05 1:47 
QuestionWrite Driver to boost Microphone Pin
hircs18-Sep-05 23:34
susshircs18-Sep-05 23:34 
AnswerRe: Write Driver to boost Microphone Pin
hircs19-Sep-05 22:45
susshircs19-Sep-05 22:45 
Questionapplication doesnt work if edit/combo control is added Pin
Mukhan18-Sep-05 23:29
Mukhan18-Sep-05 23:29 
AnswerRe: application doesnt work if edit/combo control is added Pin
David Crow19-Sep-05 8:00
David Crow19-Sep-05 8:00 
QuestionProblems with Edit box for run time textual output Pin
adrian2718-Sep-05 23:08
adrian2718-Sep-05 23:08 
I'm currently developing the GUI for an application that interfaces to a hardware data acquisition device. I'd like a window on the GUI that displays read-only textual status information, much like the build/debug console at the bottom of the visual studio IDE. I've placed an Edit control on my dialog and attached a CString member variable to it with global scope. Every time I want to append a new line of text to the output window I append it to the CString member using +=. This way I retain previous output messages. Every time I append some new text I proceed this with SetDlgItemText() to update the edit control text. Ive added a vertical scroll to allow read access to text outside of the edit control window. I have the multi-line style selected

The problem I have is one of orientation. Clearly I want the most recently appended lines to be visible without having to touch the scroll bar, just like on Visual studio, and even the edit box Im entering this text into. However I can't find a way of arranging this. In my application the scroll bar sits at the top of the window by default so that the first few lines of text are visible and you have to scroll down to the more recently appended lines.

Any advice on resolving this problem is greatly appreciated.

Regards,

Adrian
AnswerRe: Problems with Edit box for run time textual output Pin
khan++18-Sep-05 23:24
khan++18-Sep-05 23:24 
GeneralRe: Problems with Edit box for run time textual output Pin
adrian2719-Sep-05 3:19
adrian2719-Sep-05 3:19 
GeneralRe: Problems with Edit box for run time textual output Pin
Ravi Bhavnani19-Sep-05 6:54
professionalRavi Bhavnani19-Sep-05 6:54 
AnswerRe: Problems with Edit box for run time textual output Pin
David Crow19-Sep-05 8:04
David Crow19-Sep-05 8:04 
QuestionCStatic doesn't refresh itselt Pin
followait18-Sep-05 22:52
followait18-Sep-05 22:52 
AnswerRe: CStatic doesn't refresh itselt Pin
David Crow19-Sep-05 8:06
David Crow19-Sep-05 8:06 
GeneralRe: CStatic doesn't refresh itselt Pin
followait19-Sep-05 15:38
followait19-Sep-05 15:38 
GeneralRe: CStatic doesn't refresh itselt Pin
David Crow20-Sep-05 7:05
David Crow20-Sep-05 7:05 
QuestionCStatic doesn't fresh itselt Pin
followait18-Sep-05 22:52
followait18-Sep-05 22:52 
QuestionScaling...Help Pin
Raza568018-Sep-05 22:50
Raza568018-Sep-05 22:50 
Questionproblem while loading in picturebox(urgent plz) Pin
a_david12318-Sep-05 21:41
a_david12318-Sep-05 21:41 
AnswerRe: problem while loading in picturebox(urgent plz) Pin
khan++18-Sep-05 23:10
khan++18-Sep-05 23:10 
Questionadapter enabling Pin
Member 222024518-Sep-05 21:31
Member 222024518-Sep-05 21:31 
QuestionMFC Pin
Anonymous18-Sep-05 21:09
Anonymous18-Sep-05 21:09 
AnswerRe: MFC Pin
The NULL Developer18-Sep-05 21:18
professionalThe NULL Developer18-Sep-05 21:18 
QuestionChild window in splitter window Pin
The NULL Developer18-Sep-05 20:58
professionalThe NULL Developer18-Sep-05 20:58 
Questionhow to save the toolbar state to a .ini file? Pin
benben18-Sep-05 20:47
benben18-Sep-05 20:47 

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.