Enhancements to Andrei Stcherbatchenko’s Syntax coloring text editor

CodeGuru content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More.

Environment: –>

Additions:

Ability to Disable Drag&Drop (via the CCrystalTextView::GetDisableDragAndDrop( void ), and
CCrystalTextView::SetDisableDragAndDrop( bool bDDAD ) methods).

Ability to add description text to Undo/Redo actions (via the CCrystalTextBuffer::CanUndo( PTSTR cpDesc ),
CrystalTextBuffer::CanRedo( PTSTR cpDesc ), and AddUndoRecord(BOOL bInsert,
const CPoint &ptStartPos, const CPoint &ptEndPos, LPCTSTR pszText, LPCTSTR
cpDesc = NULL ) methods).

Some notes:

Undo/Redo description text is stored in a 32 byte buffer, so the description limit is 31
characters Currently, no checking is done to verify the length!

All(?) of my changes can be found by searching for “[JRT]”, which is near all of the changes that I made.

Download source – 43 KB

Date Last Updated: February 14, 1999

More by Author

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends & analysis

Must Read