From: Simon on
Hi,

I am looking for a function that would allow me to output text on the
screen with HTML markings.

There is a function, (DrawHTML( ...) on codeproject,
http://www.codeproject.com/KB/GDI/DrawHTML.aspx) and it does work very
well but it has many short falls, (missing a lot of tags, no support for
font sizes, H1, H2, DT_CENTER or DT_RIGHT etc...)

Of course, I can always add the tags myself and make the changes needed,
but I was wondering if there was a similar lightweight function/API that
I could use?

My target users are Win2000 and later.

Many thanks

Simon
From: patrick on
On 25 sep, 08:32, Simon <b...(a)example.com> wrote:
> Hi,
>
> I am looking for a function that would allow me to output text on the
> screen with HTML markings.
>
> There is a function, (DrawHTML( ...) on codeproject,

Useless (and bugged..)
Simply use the HTML Windows native control.
From: Simon on
>> I am looking for a function that would allow me to output text on the
>> screen with HTML markings.
>>
>> There is a function, (DrawHTML( ...) on codeproject,
>
> Useless (and bugged..)

It is not that bad, it does do some simple HTML output.

> Simply use the HTML Windows native control.

What windows native control??

Simon

From: Goran on
If you don't have any very smart and specific reason against... Nah,
just embed IE (e.g. CHtmlView) or some other browser engine. You are
trying to make it hard for yourself.

Goran.
From: Simon on
Goran wrote:
> If you don't have any very smart and specific reason against... Nah,
> just embed IE (e.g. CHtmlView) or some other browser engine. You are
> trying to make it hard for yourself.
>
> Goran.

I have nothing against using CHtmlView, but the main, (and only real
one), problem is, what if the user does not have IE?

I know, I know, those are very few and far between, but still,
I would hate to cancel an installation because the user does not have a
flavor of IE installed.

The other, (albeit smaller), problem is that I use certain base classes
like CScrollView and I think I cannot add CHtmlView to those. But I
would have to play around to be sure.

Simon