Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to render html (text-only) into an offscreen buffer?

2 views
Skip to first unread message

Dan

unread,
Dec 28, 2009, 11:22:48 AM12/28/09
to
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

unread,
Dec 28, 2009, 1:04:36 PM12/28/09
to
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

Joseph M. Newcomer [MVP]
email: newc...@flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm

0 new messages