Edit box
-
I'm currently making something similar to a telnet-type window and I'm using a multi-line edit box to display the information I need. My question is this: I need the edit box to scroll, to I'm using the ES_AUTOVSCROLL style. Only thing is, I need to set the number of visible lines based on the window size in order for the scrolling to work automatically. I have not been able to find any information on how to set the max number of lines in a multi-line edit box. Does anyone know how to do this? Any comments or suggestions are greatly appreciated. Thanks!
-
I'm currently making something similar to a telnet-type window and I'm using a multi-line edit box to display the information I need. My question is this: I need the edit box to scroll, to I'm using the ES_AUTOVSCROLL style. Only thing is, I need to set the number of visible lines based on the window size in order for the scrolling to work automatically. I have not been able to find any information on how to set the max number of lines in a multi-line edit box. Does anyone know how to do this? Any comments or suggestions are greatly appreciated. Thanks!
-
Becuase I'm not using MFC :( Stuck with what i got. Is there and edit view that's usable without mfc? I'm looking now.
Just create the edit control of a size that fits the number of lines that you wish to display. Then, make sure that the ES_AUTOVSCROLL style is set. Problem solved. You also may want to set a fixed-pitch font and handle the background color to make it appear like a console window.