360_viewer.html,HTMLViewer

HTMLViewerBy Terence

"Dr. CE" Goggin

Copyright 2000, 2001 Terence Goggin Version 1.00  Revised 4/20/01

computer-6.jpg%20

Topics

1. Is there a control that will allow me to display

HTML inside my application?

Yes, it's called the HTMLViewer control.

2. Where can I find a sample that shows how to use

the HTMLViewer control?

The HTMLViewer sample included with the HPC Pro SDK should work

just fine for any of the CE platforms.

It's usually found under

%Windows CE Tools%\wce211\MS HPC Pro\samples\win32\htmlview

3. Does the HTMLView control offer the IWebBrowser

interface or anything like that?

No. The HTMLView control is a standard "classic" Windows-based

control, much like a Button or an Edit control. There's no COM or

Interfaces involved at all.

4. How can I get the IWebBrowser interface?

It's supposedly available as part of PlatformBuilder, which means that if

you're

building your own custom device, you may well be in luck.

If you're targeting a retail device, though, you'll have to resort to

changing your

code to use the HTMLView control instead.

5. How can I load graphics besides BMPs? I want to

use JPEGs & GIFs, but HTMLView doesn't seem to do that.

Yes, there is a way to get HTMLView to show images other than BMPs. The

trick is that you have to load the images yourself. I recommend using

something like the image decomp library that ships with CE. (There is a

good sample at the URL below.)

When the HTMLView control encounters an < IMG>   tag, it

will send a

WM_NOTIFY message back to the parent window. This is where the app can

load the image specified and return an HBITMAP to the HTMLView control.

(It's much simpler than it sounds.)

For more information: http://www.conduits.com

6. How can I use ClearType in my HTMLView-based

applications?

SendMessage(hwndHTML,

DTM_ENABLECLEARTYPE, 0,

0);

Internal Server Error

Internal Server Error

e3f6977028a5fca73b11df49c4843d7b.gif The server encountered an internal error or

misconfiguration and was unable to complete your request. Your administrator may not have enabled CGI access for this directory.

Terence Goggin's DoctorCE.com

site - Custom Windows CE development/consulting services.

Terence

"Dr. CE" Goggin.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值