DEVBUZZ Homepage Saddling the HTML View Control Part II / Catch Those Messages
 
Web www.devbuzz.com
  HOME PAGE
  All Articles
  Advertise
  Consulting

 Development
  Discuss - Forums
  Still in the box?
  .Compact Framework
  Code Snippets
  SQL Server CE
  Database
  MS Resources
 Stores
  Developer Controls
  Pocket PC Hardware
  Pocket PC Software
  Pocket PC Books
  .NET CF Books
  Book Reviews
  SPB SW Discounts
  RESCO SW Discounts
 DEVBUZZ Info
  About Us
  Help
  Join our email list
  Links & Ratings
  Press & Comments
  Pocket PC version
  Software Reviews
  Hardware Reviews
 Authors
  Authors
  Article Guide
  Competitions
 Resources
  Developers
  Register
  Login

  SPB Discounts!
 Columnists
  Rick Winscot
 Past Blast
  Personal Media Ctr
  Gizmobility
  eVB Legacy
  Old news
  Hosted Software
  Wireless
  Newsletters
  Carl Davis
  Upton Au

 Pocket PC Registry
  Join the registry
  View current list
 Current Poll
Are you converting to .NET Compact Framework?
Yes, it has changed my life!
No, I'm sticking with eVB
.NET CF what's that`?

Current results
3431 votes so far
 Recent Forum Threads [goto forums]

Get Computername
read... (67 hits)


Great aid to development productivity
read... (82 hits)


ThreadingTimer sample code
read... (143 hits)


Multithreading with .NET CF
read... (194 hits)


Moving from eMbedded Visual Basic to Visual Basic .NET
read... (166 hits)


.NET Compact Framework 2.0 Service Pack 2
read... (226 hits)


Transfer Data from SQL Server 2000 to SQL Server Compact Edition
read... (298 hits)


This protocol version is not supported
read... (236 hits)


Converting Lowercase to uppercase wont work
read... (203 hits)


Direct access to MS SQL Server 2000
read... (374 hits)


Creating SDF file in Desktop
read... (513 hits)


Winsock in CF.NET
read... (316 hits)


Using Pocket Outlook to submit HTML page form with MAILTO action
read... (420 hits)


Missing file "System.Data.PocketPC.asmmeta.dll"
read... (268 hits)


HP iPAQ hw6915 Serial Port Issue
read... (309 hits)


Info on the recent forum changes
read... (341 hits)


SqlServer tools from Redgate
read... (383 hits)


Arrow keys and Hardware navigation button
read... (393 hits)


O2 XDA lls pin sync cable to comport
read... (322 hits)


Creating dynamic folders on Pocket PC OS
read... (299 hits)

Custom Windows Mobile software development.
LBS Challenge 2007
LBS Challenge Eight previous NAVTEQ Global LBS Challenge® participants have received venture capital funding and nine past LBS Challenge winners have launched commercial applications on major wireless carriers. Register your non-commercial LBS application in the 2007 NAVTEQ Global LBS Challenge in one of three regions: Americas, Europe-Middle East-Africa (EMEA) or Asia-Pacific(APAC). You could win a share of $2 million in prizes. This could be your year.
Dream. Develop. Win.

Development | Starting Out

Saddling the HTML View Control Part II / Catch Those Messages
Written by Alex Yakhnin  [author's bio]  [read 39132 times]
Edited by Derek

Download the code   Discuss this article   eVB Ver 3.0   

Page 1  Page 2  Page 3 

Introduction

In the first article 'Saddling HTML Viewer Control' I showed you the way to create the HTML viewer control in eVB using Platform SDK API calls. We managed to show simple html in the control and were able to implement some of the functionality of the HTML Viewer Control such as selecting, copying, text zooming and scrolling. In this article I'll show you that we are able to implement the fully functional HTML viewer control that handles 'links', 'html form' submission, pictures and some more stuff, with the help of the MessageCE control I created.

Background

Let's start from some background on how the HTML viewer control handles links and pictures accordingly to the Windows CE Platform SDK documentation that comes with eMbedded Tools.
If the user taps on a link or submits a form, the HTML viewer control sends the NM_HOTSPOT notification message to its parent, which includes the data structure (NM_HTMLVIEW) with the information about the link reference or the data that was submitted. In the case there is a picture in the html loaded into the control, it will send NM_INLINE_IMAGE notification message with the same data structure, but with the name of the picture file. In the response on this message the Parent is supposed to load this file into the memory and send the DTM_SETIMAGE message with the pointer to the memory of the loaded picture... So much for the simple process of showing the picture, right? Well, worry no more. The subclassing control MessageCE will handle that impossible for eVB situation for you.

So what is this subclassing control anyway? It's a COM component that will hook into the messages of the forms and controls and will notify your eVB application of those messages. I specifically designed the MessageCE control to handle the subclassing and processing of the HTML Viewer control messages.

Implementation

We are going to start from the eVB project we created last time for first article. You will need to download the MessageCE component from http://intelprog.com/prod02.htm and register it on your device using Control Manager.

We'll start from adding some html lines to the HTML Viewer control for showing links and html form.

Next Page 

Back to Starting Out | [Article Index]

 

Back to the top of the page.
Chris De Herrera's Windows CE Website Windows CE News & Information Source
Copyright ©2000-2007 by DEVBUZZ.COM, Inc., NJ. USA.MSDEVELOP