Click to See Complete Forum and Search --> : CRichEditCtrl


Raj Pal
April 8th, 1999, 04:44 AM
Pl. HELP : What is the best way of drawing CRichEditCtrl on to a memory Bitmap with the supplied CHARFORMAT information. At the last I would paste this bitmap to my view window,because I want to see the entered text of CRichEditCtrl on the view after deleing the object of CRichEditCtrl or CRichEditCtrl Window. Drawing on to the bitmap is my application requirement.

April 14th, 1999, 02:41 PM
Select a bitmap into a memory device context. Print the rich text to that device context using the EM_FORMATRANGE message, and then call StretchBlt() to copy the bitmap to your destination.
eric.kenny@transamerica.com