Click here to Skip to main content
15,922,630 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Installation wizard? Pin
Rage26-Jan-03 23:51
professionalRage26-Jan-03 23:51 
GeneralRe: Installation wizard? Pin
*Tom*27-Jan-03 0:01
*Tom*27-Jan-03 0:01 
AnswerRe: Installation wizard? Pin
Renjith Ramachandran27-Jan-03 2:42
Renjith Ramachandran27-Jan-03 2:42 
GeneralHandling the user (when takes out a floppy disk while it is working) Pin
Joan M26-Jan-03 22:22
professionalJoan M26-Jan-03 22:22 
GeneralRe: Handling the user (when takes out a floppy disk while it is working) Pin
Rage26-Jan-03 23:54
professionalRage26-Jan-03 23:54 
GeneralRe: Handling the user (when takes out a floppy disk while it is working) Pin
benjymous26-Jan-03 23:57
benjymous26-Jan-03 23:57 
GeneralRe: Handling the user (when takes out a floppy disk while it is working) Pin
*Tom*27-Jan-03 11:26
*Tom*27-Jan-03 11:26 
GeneralRe: Handling the user (when takes out a floppy disk while it is working) Pin
Joan M27-Jan-03 21:22
professionalJoan M27-Jan-03 21:22 
GeneralRe: Handling the user (when takes out a floppy disk while it is working) Pin
*Tom*28-Jan-03 0:12
*Tom*28-Jan-03 0:12 
GeneralInvalid memory access while accessing a dll exported variable Pin
shaunakshaunak26-Jan-03 22:17
shaunakshaunak26-Jan-03 22:17 
GeneralLinker Error Pin
suresh_sathya26-Jan-03 21:53
suresh_sathya26-Jan-03 21:53 
GeneralRe: Linker Error Pin
Daniel Strigl26-Jan-03 22:32
Daniel Strigl26-Jan-03 22:32 
GeneralRe: Linker Error Pin
Mike Nordell27-Jan-03 9:44
Mike Nordell27-Jan-03 9:44 
GeneralMetafile playing(URGENT) Pin
satyavasu26-Jan-03 21:50
satyavasu26-Jan-03 21:50 
GeneralQuestion about thread and TLS Pin
George226-Jan-03 21:40
George226-Jan-03 21:40 
GeneralRe: Question about thread and TLS Pin
George226-Jan-03 21:41
George226-Jan-03 21:41 
GeneralContext menu and Dialog names Pin
Rage26-Jan-03 21:21
professionalRage26-Jan-03 21:21 
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.

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.