STL compatible output stream for manipulation of  CEdit-associated control.

Demonstrations.       Example of using.       Components.       Notes about using.

The output stream in question has all the regular std::ostream operations. The output is directed to the current cursor position of a multiline CEdit-based editor box control or a CEditView-based editor window.

The constructor takes a pointer to a CEdit class.

The following table is a list of the nonstandard member functions.

Prototype. Description.
CEditOutputStream::CEditOutputStream( CEdit* ); Constructor.
int CEditOutputStream::getCursorPosition(); Returns current cursor position.
void CEditOutputStream::setCursorAtPosition( int ); Sets cursor after the specified position.
int CEditOutputStream::getMaximalCursorPosition(); Returns the position after the last characte that is currently present in the buffer of the CEdit class.
void CEditOutputStream::setCusorAtStart(); Sets cursor before the first character.
void CEditOutputStream::setCursorAtEnd(); Sets cursor after the last character.
void CEditOutputStream::moveCursorBy( int ); Moves cursor by given number of positions. The signature of the parameter determines the direction.
void CEditOutputStream::flush(); Inserts contents of the buffer of the CEditStreamClass into current position in the buffer of the CEdit object.
Hosted by www.Geocities.ws

1