2 questions 1) I have a Rich edit control in a dialog box. I add text to the end through a CString. I want to keep the scroll position it the bottom of the text. Whenever you call UpdateData (FALSE); it springs back to the top of the text. I've had a look at the setscrollpos, etc (that are in CWnd), but they are not very effective. 2) In the rich edit control i want to have different colours, but since the user does not enter text directly i use updatedata and all formatting is lost (and all text goes to the last setting used). Anyway around this? thanks
C
cowell
@cowell
Posts
-
Scrolling to the bottom+colors -
Setting focus to a controli meant that in Class Wizard member variables i put a CString onto the edit box. I put a CEdit onto the edit box as well, so i can use SetFocus like that. I was just wondering if you could do it without having to have a CEdit just for that. if u get what i mean :).
-
Setting focus to a controlokay, whoops, i should have said that i have a CString mapped to the control. I suppose I have to map a CEdit as well to be able to focus it...
-
Setting focus to a controlIn a dialog, i have some buttons and a CEdit control. How would I set the focus to the edit control? tanx
-
I don't want to close this dialogin an MFC dialog i have a Edit control. When you press enter it quits. How do i override this???