none
Rich Edit: extending selection across CFM_HIDDEN

    Question

  • 1)  If I mark some characters in my Rich Edit control with the CFM_HIDDEN flag, I can't extend the selection across the position where the hidden characters are.  The RTF looks like this: "Hello \v@1@\v0 World".   The control displays "Hello  World" but it will not let me select both words together.  Is this a bug or is it by design?

    2) I'm working on an app similar to the Outlook rules editor that embeds hotlinks in the rule description, i.e., [Folder]. When you click on the link, a dialog appears.  In my app, the link works fine, but I need to embed an index with the link so that I can find an associated object.   The index needs to be embedded with the link in case the user moves the link around, uses delete/undo, or copy/paste.  Is there a better way to associate some "client data" with a link in the rich edit control?

    John
    Wednesday, October 8, 2008 9:05 PM