mIRC channel textoutput .......
-
how create output text in richedit ctrl like mIRC channel textoutput ? I mean text scrolling from bottom side to upper side.... [ sorry for my english :) ] ---------------------------- never stop coding.
You want to insert text at the bottom of the richedit control?
CHARRANGE cr;
cr.cpMax = LONG_MAX;
cr.cpMin = LONG_MAX;
richedit.SetSel( cr ); // move selection to the bottom
richedit.ReplaceSel( (LPCSTR)string ); // insert your text// force the rich edit to scroll to the bottom
richedit.SendMessage( SB_BOTTOM, NULL, NULL );So in the interests of survival, they trained themselves to be agreeing machines instead of thinking machines. All their minds had to do was to discover what other people were thinking, and then they thought that, too."
Breakfast of Champions, Kurt Vonnegut -
You want to insert text at the bottom of the richedit control?
CHARRANGE cr;
cr.cpMax = LONG_MAX;
cr.cpMin = LONG_MAX;
richedit.SetSel( cr ); // move selection to the bottom
richedit.ReplaceSel( (LPCSTR)string ); // insert your text// force the rich edit to scroll to the bottom
richedit.SendMessage( SB_BOTTOM, NULL, NULL );So in the interests of survival, they trained themselves to be agreeing machines instead of thinking machines. All their minds had to do was to discover what other people were thinking, and then they thought that, too."
Breakfast of Champions, Kurt Vonnegut