Click here to Skip to main content
15,921,203 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCancel WaitCommEvent for non-overlapped IO Pin
25-Oct-01 19:53
suss25-Oct-01 19:53 
GeneralRe: Cancel WaitCommEvent for non-overlapped IO Pin
Colin Urquhart28-Oct-01 13:02
Colin Urquhart28-Oct-01 13:02 
Questionhow to get mouse click function called on capture window Pin
25-Oct-01 19:39
suss25-Oct-01 19:39 
AnswerRe: how to get mouse click function called on capture window Pin
Christian Graus25-Oct-01 20:57
protectorChristian Graus25-Oct-01 20:57 
GeneralDownloading Dialog box Pin
Gopi Krishna25-Oct-01 17:29
Gopi Krishna25-Oct-01 17:29 
QuestionHelp! Header Notification errors? Pin
Jim Crafton25-Oct-01 17:25
Jim Crafton25-Oct-01 17:25 
AnswerRe: Help! Header Notification errors? Pin
Christian Graus25-Oct-01 17:34
protectorChristian Graus25-Oct-01 17:34 
GeneralRe: Help! Header Notification errors? Pin
Jim Crafton25-Oct-01 17:37
Jim Crafton25-Oct-01 17:37 
AnswerRe: Help! Header Notification errors? Pin
Tomasz Sowinski26-Oct-01 0:00
Tomasz Sowinski26-Oct-01 0:00 
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 

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.