GDI related
-
I have a text/rich text box on a dialog. Vertical scroll is enabled for this text box. I write text on the text box. Ofcourse some text may be hidden that we can see after scrolling up or down. Now i want everything written in the text box to be represented by a
CBitmap
object. How can i do so ???? Actually i want the contents of text box to be stored in a bmp file. I know how to store CBitmap contents in a BMP file, but i don't know how to first represent the text box contents in CBitmap object (as it is). Thanks -
I have a text/rich text box on a dialog. Vertical scroll is enabled for this text box. I write text on the text box. Ofcourse some text may be hidden that we can see after scrolling up or down. Now i want everything written in the text box to be represented by a
CBitmap
object. How can i do so ???? Actually i want the contents of text box to be stored in a bmp file. I know how to store CBitmap contents in a BMP file, but i don't know how to first represent the text box contents in CBitmap object (as it is). Thanksyou can redirect a RichText control's output using the DrawBand and FormatRange calls. i don't have any code handy to share, but it really only takes a few lines to do this. try googling on those function calls. -c
Chris Losinger
Smaller Animals Software -
you can redirect a RichText control's output using the DrawBand and FormatRange calls. i don't have any code handy to share, but it really only takes a few lines to do this. try googling on those function calls. -c
Chris Losinger
Smaller Animals SoftwareYou can also create a memory DC, send the control a WM_PAINT message with the handle of that DC, and extract the BMP from the DC.