Support for embedded images added

55 views
Skip to first unread message

ChalkTrauma

unread,
Feb 8, 2010, 9:30:18 AM2/8/10
to winguide
I recently added support for images...

The solution was extremely simple, so it might be worth adding to 2.0.
Pretty much just a drop in class.

I used the extended CRichEditCtrl from here
http://www.codeproject.com/KB/edit/COleRichEditCtrl.aspx

I just make it a member of RTFConcatenator and use that instead of
the plain hidden RICHEDIT50W control created in the constructor and
set m_hWnd the created COleRichEditCtrl.

The only other bit I had to change was comment out the check in
RTFConcatenator::CollectCallback that checks if (nChars > 0) because
images are not characters.

But other than that everything works the same except now I can get
images in my exported RTF.

This might be something you would be interested in adding...

SDX2000

unread,
Feb 8, 2010, 11:29:29 AM2/8/10
to winguide
Thanks ChalkTrauma...this is certainly a good idea.
Reply all
Reply to author
Forward
0 new messages