Click here to Skip to main content
15,904,638 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to save a *.eml? Pin
cococut25-Oct-01 17:15
cococut25-Oct-01 17:15 
GeneralOpenGL display of triangle mesh Pin
Rick York25-Oct-01 16:15
mveRick York25-Oct-01 16:15 
GeneralRe: OpenGL display of triangle mesh Pin
Jonathan de Halleux30-Oct-01 0:56
Jonathan de Halleux30-Oct-01 0:56 
GeneralFast file downloading engine needed Pin
Gopi Krishna25-Oct-01 16:11
Gopi Krishna25-Oct-01 16:11 
GeneralplHigh resolution timers Pin
25-Oct-01 11:40
suss25-Oct-01 11:40 
GeneralRe: plHigh resolution timers Pin
Rick York25-Oct-01 16:01
mveRick York25-Oct-01 16:01 
GeneralGo to the end of rich edit control Pin
Erik Hammar25-Oct-01 11:29
Erik Hammar25-Oct-01 11:29 
GeneralRe: Go to the end of rich edit control Pin
Christian Graus25-Oct-01 11:44
protectorChristian Graus25-Oct-01 11:44 
I do it in Win32 like this:

::SetFocus (editControl);
::SendMessage (editControl, EM_SETSEL, (WPARAM)length, (LPARAM)length);
::SendMessage (editControl, EM_REPLACESEL, 0, (LPARAM) ((LPSTR) str.c_str())); 	


I'm sure the MFC class for a rich edit will have methods so you don't need to send messages like this. The basic idea is make the cursor select the end position of the text in there, and then replace the selection ( which is really a caret at the end of the line ) with the text you want to append. length obviously equals the length of the text already there.


Christian

After all, there's nothing wrong with an elite as long as I'm allowed to be part of it!! - Mike Burston Oct 23, 2001
GeneralRGB (for Christian) Pin
25-Oct-01 11:23
suss25-Oct-01 11:23 
GeneralRe: RGB (for Christian) Pin
Christian Graus25-Oct-01 11:53
protectorChristian Graus25-Oct-01 11:53 
GeneralRe: RGB (for Christian) Pin
Sergei25-Oct-01 12:59
Sergei25-Oct-01 12:59 
GeneralRe: RGB (for Christian) Pin
Christian Graus25-Oct-01 13:07
protectorChristian Graus25-Oct-01 13:07 
GeneralRe: RGB (for Christian) Pin
Sergei25-Oct-01 13:19
Sergei25-Oct-01 13:19 
QuestionHow to "catch" keystrokes from other applications Pin
Sprudling25-Oct-01 10:54
Sprudling25-Oct-01 10:54 
AnswerRe: How to "catch" keystrokes from other applications Pin
Tomasz Sowinski25-Oct-01 10:59
Tomasz Sowinski25-Oct-01 10:59 
AnswerRe: How to "catch" keystrokes from other applications Pin
Ravi Bhavnani25-Oct-01 11:00
professionalRavi Bhavnani25-Oct-01 11:00 
AnswerOoops - sorry 4 the Delphi link Pin
Ravi Bhavnani25-Oct-01 11:18
professionalRavi Bhavnani25-Oct-01 11:18 
AnswerRe: How to "catch" keystrokes from other applications Pin
Fazlul Kabir25-Oct-01 11:36
Fazlul Kabir25-Oct-01 11:36 
GeneralClasses not staying in SubDirectories of Project Pin
John Gilbert25-Oct-01 10:15
John Gilbert25-Oct-01 10:15 
GeneralRe: Classes not staying in SubDirectories of Project Pin
Tomasz Sowinski25-Oct-01 10:17
Tomasz Sowinski25-Oct-01 10:17 
GeneralRe: Classes not staying in SubDirectories of Project Pin
John Gilbert25-Oct-01 10:27
John Gilbert25-Oct-01 10:27 
GeneralHelp needed with Menu bar message handler Pin
25-Oct-01 10:13
suss25-Oct-01 10:13 
GeneralRe: Help needed with Menu bar message handler Pin
Ravi Bhavnani25-Oct-01 10:22
professionalRavi Bhavnani25-Oct-01 10:22 
GeneralRe: Help needed with Menu bar message handler Pin
25-Oct-01 10:27
suss25-Oct-01 10:27 
QuestionWhy the app have closed ? Pin
Cris25-Oct-01 9:30
Cris25-Oct-01 9:30 

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.