Click here to Skip to main content
15,913,758 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalmessage handler Pin
K. Shaffer14-May-03 11:11
K. Shaffer14-May-03 11:11 
GeneralRe: message handler Pin
Neville Franks14-May-03 11:26
Neville Franks14-May-03 11:26 
GeneralRe: message handler Pin
Toni7815-May-03 5:43
Toni7815-May-03 5:43 
GeneralNovell & NT Service Pin
Ed K14-May-03 10:41
Ed K14-May-03 10:41 
QuestionHow to automatically perform function when dialog appears? Pin
modernrelativist14-May-03 10:35
modernrelativist14-May-03 10:35 
AnswerRe: How to automatically perform function when dialog appears? Pin
David Crow14-May-03 11:00
David Crow14-May-03 11:00 
AnswerRe: How to automatically perform function when dialog appears? Pin
desantos14-May-03 11:11
desantos14-May-03 11:11 
AnswerRe: How to automatically perform function when dialog appears? Pin
John R. Shaw14-May-03 13:23
John R. Shaw14-May-03 13:23 
Desanto is correct on how to replace all text in the edit control in OnInitDialog().

It also appears you want to receive more updates after the dialog is loaded. One way of doing that would be to start a timer using SetTimer() and handle the WM_TIMER message, so you can check if an update is required.
1) if you want to replace all text call SetDlgItemText().
2) If you want add to the current text then you have to A) use EM_SETSEL (CEdit::SetSel()) to set current selection to end of currently displayed text [it might already be set there by last write], B) use EM_REPLACESEL (CEdit::ReplaceSel()) to insert the new text you want to add [followed by CR/LF].

Wink | ;) Hope this helps.

Trust in the code Luke. Yea right!
Generalambiguous symbol Pin
Unplugged14-May-03 10:22
Unplugged14-May-03 10:22 
GeneralRe: ambiguous symbol Pin
Ed K14-May-03 11:17
Ed K14-May-03 11:17 
GeneralRe: ambiguous symbol Pin
Unplugged20-May-03 4:35
Unplugged20-May-03 4:35 
GeneralVS integration of my common control Pin
compiler14-May-03 9:37
compiler14-May-03 9:37 
GeneralDialog :o) Pin
MemLeak14-May-03 9:21
MemLeak14-May-03 9:21 
GeneralRe: Dialog :o) Pin
JayP14-May-03 9:27
JayP14-May-03 9:27 
GeneralRe: Dialog :o) Pin
Nitron14-May-03 14:28
Nitron14-May-03 14:28 
GeneralPlacing a control in an edit control's NC area Pin
Diarrhio14-May-03 9:15
Diarrhio14-May-03 9:15 
GeneralRe: Placing a control in an edit control's NC area Pin
John R. Shaw14-May-03 13:36
John R. Shaw14-May-03 13:36 
Questionget hardware info ? Pin
_skidrow_vn_14-May-03 8:17
_skidrow_vn_14-May-03 8:17 
AnswerRe: get hardware info ? Pin
David Crow14-May-03 9:22
David Crow14-May-03 9:22 
QuestionHow to secure delete files Pin
gmlnd14-May-03 7:51
gmlnd14-May-03 7:51 
AnswerRe: How to secure delete files Pin
David Crow14-May-03 8:05
David Crow14-May-03 8:05 
GeneralRe: How to secure delete files Pin
gmlnd14-May-03 8:53
gmlnd14-May-03 8:53 
GeneralRe: How to secure delete files Pin
David Crow14-May-03 9:07
David Crow14-May-03 9:07 
GeneralRe: How to secure delete files Pin
gmlnd14-May-03 9:17
gmlnd14-May-03 9:17 
GeneralRe: How to secure delete files Pin
David Crow14-May-03 9:25
David Crow14-May-03 9:25 

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.