Phew! That was a pain! (PPC's HtmlCtrl as a CF control)

  • Thread starter Thread starter Ralph Sommerer
  • Start date Start date
R

Ralph Sommerer

I finally managed to build a .NET CF wrapper for the HtmlCtrl thing on the
PPC (htmlview.dll). I couldn't find out (google), whether anyone has done
that already, so I've done it myself. It was a pain, I can tellya. It uses
some of the the nasty hacks proposed in this forum to get the window handle
of a Control, and to tweak a MessageWindow into properly displaying a child
window. It's not a pretty sight.

Now that it works and considering how small and few the necessary
"adjustments" eventually proved to be, it's somewhat hard to see why the
control isn't a part of the CF in the first place. Anyway, after a bit of
cleaning up the code, I might consider dumping the code on gotdotnet.

Cheers
 
thanks for the code
this is really what i want.
But,i have a question: i embed a flash player into html with your htmlview.
Can i interact with flash player by using c#?
regards and thanks for a good job again..
 
I suppose, you can't. The flash player runs as an ActiveX control within the
HTML control, and ActiveX is not supported in the .NET CF. Furthermore, the
CF Control wrapper that I built interacts with the HTML control via Win32
messages (SendMessage(...)) and not through the control's COM interfaces,
and as far as I know there's no way to get the COM interface pointers via
Win23 messages.

So, unless someone implements a wrapper for the HTML control that uses the
control's COM interfaces, there's no interaction with embedded ActiveX
controls, not to mention using C#...

Ralph
 
but media player works good with your htmlviewer.
and interection is with strings ie.
"<param name=\"filename\"

so flash player *could be* controlled with your "perfect" control (thanks
again)
 
Back
Top