Enhancements to Andrei Stcherbatchenko's Syntax coloring text editor

Environment: -->


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


  • ExEditors Library

    Posted by Legacy on 03/19/2002 12:00am

    Originally posted by: Mike Philips

    A complete collection of editors in a single file:




    Posted by Legacy on 04/25/2000 12:00am

    Originally posted by: Michael Yokoyama

    Hi, I'm looking for a Richedit version of this.


  • 2 character??? (in korea)

    Posted by Legacy on 12/06/1999 12:00am

    Originally posted by: falcon, kim


    CrystalEditor is good.

    I live in korea.
    We use 2 bytes in one character.
    if mouse point is on charcter,
    the charcter is broken..

    help me!!!!
    I want to use "crystaleditor class" with english and korean.

    pleaze tell me the method that use 1byte(english) and
    2bytes(korean) together.

    or tell me idea....

    thanks codeguru.....

  • good work!

    Posted by Legacy on 08/30/1999 12:00am

    Originally posted by: Charlie

    a little bit good!!

Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Protect Your Business against Today's Rapidly Growing Threats Your business, employees, partners, and customers are depending more and more on network connectivity, and protecting data and infrastructure has moved to the top of the IT agenda. You can't arm yourself against today's rapidly increasing threats unless you understand how they work. Read this ebook to learn more about the top 10 DNS attacks that can target your external and internal DNS infrastructure, the impact they can have on the DNS server …

  • Essential Insights for Successful Cloud Migration and Management Whether you're planning your cloud migration strategy or already in the cloud, making accurate cloud decisions requires a deep analytical approach. This paper discusses the main objectives to achieve, top questions to ask, and the analytics you need at each stage of your cloud journey. You'll learn: How to identify which cloud provider will provide the best cost and performance benefits for your organization How to determine which applications …

Most Popular Programming Stories

More for Developers

RSS Feeds

Thanks for your registration, follow us on our social networks to keep up-to-date