Search code examples
c++winapiclipboardrichedit

Copying numbered lists from a RichEdit?


When you send a WM_COPY message to a RichEdit control having a numbered list selected, and then paste the text into Notepad, the numbers are not included. Is there any way to get them? Thanks!


Solution

  • You don't get the numbered list because Notepad does not support text formatting such as bullets, bold, numbering etc.

    The target application must support rich text. Copying from RichEdit and pasting in Wordpad, MS Word, Html Editor works well.

    Thanks.