Click here to Skip to main content
15,903,201 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralTooltip lost after setting state to TBSTATE_HIDDEN Pin
ElizabethC25-Nov-03 7:22
ElizabethC25-Nov-03 7:22 
GeneralScrolling a multiline CRichEditCtrl Pin
alex2000___++25-Nov-03 7:17
alex2000___++25-Nov-03 7:17 
GeneralRe: Scrolling a multiline CRichEditCtrl Pin
igor196025-Nov-03 7:32
igor196025-Nov-03 7:32 
GeneralRe: Scrolling a multiline CRichEditCtrl Pin
alex2000___++25-Nov-03 7:43
alex2000___++25-Nov-03 7:43 
GeneralRe: Scrolling a multiline CRichEditCtrl Pin
igor196025-Nov-03 7:56
igor196025-Nov-03 7:56 
GeneralRe: Scrolling a multiline CRichEditCtrl Pin
alex2000___++26-Nov-03 9:32
alex2000___++26-Nov-03 9:32 
GeneralRe: Scrolling a multiline CRichEditCtrl Pin
alex2000___++25-Nov-03 7:44
alex2000___++25-Nov-03 7:44 
GeneralRe: Scrolling a multiline CRichEditCtrl Pin
_oti14-May-09 22:34
_oti14-May-09 22:34 
Here's a really late response for you, and I understand that you will probably already have a solution. But my searching around on the net didn't find much more than your question and a lack of an answer. Hope this helps someone else.

This works for me:
CRichEditCtrl results(myEditBoxHWND);
LONG lLen = results.GetWindowTextLength();
results.SetSel(lLen, lLen);
results.ReplaceSel(_T("My new bit of text\n"));

int nFirstVisible = results.GetFirstVisibleLine();
int nTotalLines = results.GetLineCount();
results.LineScroll(nTotalLines - nFirstVisible);
Phil

--
All things considered, you can't really consider all things ...

GeneralMFC CListCtrl focus trouble. Pin
Alan Dugdall25-Nov-03 6:07
Alan Dugdall25-Nov-03 6:07 
GeneralRe: MFC CListCtrl focus trouble. Pin
Ravi Bhavnani25-Nov-03 6:14
professionalRavi Bhavnani25-Nov-03 6:14 
GeneralA function to maximize a Dialog Pin
d00_ape25-Nov-03 4:51
sussd00_ape25-Nov-03 4:51 
GeneralRe: A function to maximize a Dialog Pin
Ravi Bhavnani25-Nov-03 6:08
professionalRavi Bhavnani25-Nov-03 6:08 
QuestionHow to capture the mouse movement in IE? Pin
bin892225-Nov-03 4:31
bin892225-Nov-03 4:31 
AnswerRe: How to capture the mouse movement in IE? Pin
Mike Dimmick25-Nov-03 5:14
Mike Dimmick25-Nov-03 5:14 
AnswerRe: How to capture the mouse movement in IE? Pin
Roger Allen25-Nov-03 5:20
Roger Allen25-Nov-03 5:20 
GeneralMFC dialog launch from WinAPI dll Pin
El'Cachubrey25-Nov-03 2:56
El'Cachubrey25-Nov-03 2:56 
QuestionSize Limit on NEW??? Pin
Anonymous25-Nov-03 2:35
Anonymous25-Nov-03 2:35 
AnswerRe: Size Limit on NEW??? Pin
David Crow25-Nov-03 2:47
David Crow25-Nov-03 2:47 
AnswerRe: Size Limit on NEW??? Pin
jhwurmbach25-Nov-03 3:41
jhwurmbach25-Nov-03 3:41 
AnswerRe: Size Limit on NEW??? Pin
John R. Shaw25-Nov-03 8:58
John R. Shaw25-Nov-03 8:58 
GeneralFunction to pass from text to float Pin
chadell25-Nov-03 1:36
chadell25-Nov-03 1:36 
GeneralRe: Function to pass from text to float Pin
Mike Dimmick25-Nov-03 2:12
Mike Dimmick25-Nov-03 2:12 
GeneralRe: Function to pass from text to float Pin
Anand Paranjpe25-Nov-03 2:22
Anand Paranjpe25-Nov-03 2:22 
Generalclear a buffer Pin
styve25-Nov-03 1:23
styve25-Nov-03 1:23 
GeneralRe: clear a buffer Pin
Mike Dimmick25-Nov-03 2:15
Mike Dimmick25-Nov-03 2:15 

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.