From: Dan on
Hi,

In my app I need to retrieve html text from db and render it into an
offscreen buffer. What choices do we have in MFC? I vaguely remember that
IE has an interface (view object, or something like it) that could be used
to grab a rendered page into a bitmap. I'm not sure if that interface would
work with non-url based data (i.e. without IE navigating to an url).
Or, is there another option (except of writing an html parser/renderer)?

Thx,
Dan



From: Joseph M. Newcomer on
There is an ActiveX control that is used in CHtmlView. If I were faced with this, I'd
start there and see where things led. If you were able to intercept its OnPaint handler
and substitute a DC of your own to a memory bitmap it would be ideal, but this may not be
possible without using a hook function.
joe

On Mon, 28 Dec 2009 11:22:48 -0500, "Dan" <dan(a)dummy.com> wrote:

>Hi,
>
>In my app I need to retrieve html text from db and render it into an
>offscreen buffer. What choices do we have in MFC? I vaguely remember that
>IE has an interface (view object, or something like it) that could be used
>to grab a rendered page into a bitmap. I'm not sure if that interface would
>work with non-url based data (i.e. without IE navigating to an url).
>Or, is there another option (except of writing an html parser/renderer)?
>
>Thx,
>Dan
>
>
Joseph M. Newcomer [MVP]
email: newcomer(a)flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm