Click here to Skip to main content
15,896,726 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Context menu and Dialog names Pin
KaЯl27-Jan-03 0:23
KaЯl27-Jan-03 0:23 
GeneralRe: Context menu and Dialog names Pin
Rage27-Jan-03 0:45
professionalRage27-Jan-03 0:45 
Generale-mail client Pin
Anonymous26-Jan-03 21:02
Anonymous26-Jan-03 21:02 
GeneralRe: e-mail client Pin
benjymous27-Jan-03 0:00
benjymous27-Jan-03 0:00 
GeneralRe: e-mail client Pin
Anonymous27-Jan-03 2:40
Anonymous27-Jan-03 2:40 
GeneralRe: e-mail client Pin
Anonymous28-Jan-03 3:58
Anonymous28-Jan-03 3:58 
GeneralEthernet MAC Address, SNMP method Pin
Rok26-Jan-03 20:53
Rok26-Jan-03 20:53 
GeneralScroll to the end of a MFC RichEditCtrl Pin
p8337026-Jan-03 19:51
p8337026-Jan-03 19:51 
I'm using Visual C++ version 6.0.
I don't manually add text to the rich edit control. My application is responsible for displaying text in the MFC rich edit control.
Everytime, a new line of text is added, I want to scroll to the end of the rich edit control. For doing this I use the member RichEditCtrl::ScrollLine.
I know that if I use the ScrollLine function with a number of lines > than the total amount of lines in the rich edit control, the rich edit control is scrolled so that only the last line is shown.
This is certainly not what I want. The result I want to reach is that the last line is displayed at the bottom of the rich edit control, so that as much lines as possible are always visible. This can be compared with setting the focus to the rich edit control and entering CTRL-END.
The problem is that it doesn't work. Confused | :confused:
The text that is added to the rich edit control is using the Arial font (sometimes size 12, sometimes size 32 or 46). After the RichEditCtrl::ScrollLine the last line(s) is still not visible in the rich edit control, or the last line is only partially shown.

How can I solve this.
One more thing, the apllication is running on a Windows '98 PC.
GeneralRe: Scroll to the end of a MFC RichEditCtrl Pin
Joerg Wiedenmann26-Jan-03 21:10
Joerg Wiedenmann26-Jan-03 21:10 
GeneralRe: Scroll to the end of a MFC RichEditCtrl Pin
p8337026-Jan-03 21:14
p8337026-Jan-03 21:14 
GeneralRe: Scroll to the end of a MFC RichEditCtrl Pin
Joerg Wiedenmann27-Jan-03 2:44
Joerg Wiedenmann27-Jan-03 2:44 
GeneralMFC linking issues Pin
Anonymous26-Jan-03 19:37
Anonymous26-Jan-03 19:37 
GeneralRe: MFC linking issues Pin
Chris Losinger26-Jan-03 19:44
professionalChris Losinger26-Jan-03 19:44 
GeneralError in OMF type. Pin
73Zeppelin26-Jan-03 18:42
73Zeppelin26-Jan-03 18:42 
GeneralRe: Error in OMF type. Pin
Chris Losinger26-Jan-03 19:43
professionalChris Losinger26-Jan-03 19:43 
GeneralRe: Error in OMF type. Pin
73Zeppelin27-Jan-03 2:12
73Zeppelin27-Jan-03 2:12 
GeneralRe: Error in OMF type. Pin
Chris Losinger27-Jan-03 5:04
professionalChris Losinger27-Jan-03 5:04 
GeneralDWORD, WORD Pin
r i s h a b h s26-Jan-03 17:32
r i s h a b h s26-Jan-03 17:32 
GeneralRe: DWORD, WORD Pin
PJ Arends26-Jan-03 17:47
professionalPJ Arends26-Jan-03 17:47 
GeneralRe: DWORD, WORD Pin
r i s h a b h s26-Jan-03 23:25
r i s h a b h s26-Jan-03 23:25 
GeneralMousemove message Pin
Mahesh Varma26-Jan-03 17:28
Mahesh Varma26-Jan-03 17:28 
GeneralRe: Mousemove message Pin
Rage27-Jan-03 1:28
professionalRage27-Jan-03 1:28 
Generalfile mask Pin
pranavamhari26-Jan-03 15:42
pranavamhari26-Jan-03 15:42 
GeneralRe: file mask Pin
Michael Dunn26-Jan-03 15:57
sitebuilderMichael Dunn26-Jan-03 15:57 
GeneralRe: file mask Pin
Chris Richardson26-Jan-03 19:22
Chris Richardson26-Jan-03 19:22 

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.