Sunday, April 24, 2005

MSHTML Hosting - Drawing On WebBrowser

Hosting the WebBrowser in your application makes it easy to create slick-looking textual UI's. HTML is a fairly expressive markup language and the results can be very professional with little difficulty. The graphical side is a little less impressive. Thankfully, SVG and VML (native support in the WebBrowser control) go a long way to fill the gap. Both have capabilities that blow away good old Win32 GDI drawing. Even so, there may be times that you wish you could grab an HDC for the WebBrowser control and start drawing on it. The WebBrowser control actually has a system built into it that allows you to do just that.

IHTMLPainter is part of a system in MSHTML called Binary Behaviors. Behaviors can do lots of cool stuff. Painters are a special kind of behavior called a rendering behavior. IHTMLPainter::Draw is called by MSHTML before or after the HTML content is rendered allowing you to draw below or above the content. MSHTML passes an HDC into method that you can use with any GDI or GDI+ drawing function. Basically, behaviors are COM objects that you implement and are associated with HTML elements, either in the HTML itself using CSS or progammatically using addBehavior. The MSDN has a nice tutorial on creating a rendering behavior that includes sample code.

14 Comments:

At 2:44 AM, Blogger Adi said...

Oes Tsetnoc one of the ways in which we can learn seo besides Mengembalikan Jati Diri Bangsa. By participating in the Oes Tsetnoc or Mengembalikan Jati Diri Bangsa we can improve our seo skills. To find more information about Oest Tsetnoc please visit my Oes Tsetnoc pages. And to find more information about Mengembalikan Jati Diri Bangsa please visit my Mengembalikan Jati Diri Bangsa pages. Thank you So much.

 
At 5:44 AM, Anonymous term paper writing help said...

I appreciate for this post! Its a big help for me!

 
At 6:58 AM, Blogger polo shirts said...

History of polo ralph lauren. Polo fashions had its humble beginnings in 1968 when tie salesman Ralph Lauren gave it a kick start. By 1969 he had a boutique polo ralph lauren factory stores within the Manhattan department store Bloomingdale's. ... Brands and luxury standard. Since Ralph Lauren's first brand, Polo Ralph Lauren, was launched, the company has expanded to include a variety of luxury brands such as Polo Golf, Polo Denim, Polo Sport. You can buy cheap Ralph Lauren Clothing at Ralph Lauren outlet.Also We provide polo shirts
Ralph Lauren polo shirt, 50% OFF! polo ralph lauren outlet online is your best choice!In 2006, polo ralph lauren outlet became the first designer in Wimbledon's 133-year history to create official uniforms for the tournament. As part of this year's event, which starts next week, polo ralph lauren sale will introduces the first ... determination to maintain and enhance the values for which our two brands are famous throughout the world. The rugby ralph lauren brand brings to Wimbledon the look of timeless elegance, drawing on our rich history and traditions

 
At 5:52 AM, Blogger xiaoli said...

Offering hologr Carrera Sunglasses ? Well if yes then you might think they are out of their senses, sausdf7jkds offering hologr carrera glasses for sale is the best choice.Earlier, such kinds of carrera sunglass were not popular amongst poker players.By buying wholesale hologram porsche carrera sunglasses , ssdk8lgskl poker players enjoy the following benefits:vintage carrera sunglasses It does not let players guess your move.these glasses without making any delays. Wearing carrera champion sunglasses would make players stare at your blankly without knowing what goes in your mind.cheap carrera sunglasses Tricking Players at Poker Table.you should buy the funniest hologram buy carrera sunglasses for sale.For finding versatile designs in hologram discount carrera sunglasses for sale,Moreover, putting on such carrera aviator sunglasses would make and you should not miss a chance to buy them.

 
At 4:47 AM, Blogger bestzyh said...

The opposite form which vbhfgke include oakley frogskins involving photochromic attributes flatters now more demands

through the list of folks talked about earlier mentioned.Due to your current oakley

frogskins
, your folks in the unwelcome population can be capable of benefit from your dazzling along with evident earth while previous to way too while preserving his or

her eyesight baseballs via injury over the highly effective the sun. It can be a simple fact that will schokofarbene oakley jawbone are generally probably the most normal suggests employed to safeguard a persons vision baseballs via crazy the sun. Such a oakley flak jacket is truly highly effective exclusively throughout genuinely warm days and

nights. These kind of oakley radar employing extraordinary photochromic contact lenses would

likely adjust large corresponding for a amount of really violet sun light on the inside active natural environment.

 
At 2:42 AM, Blogger bestzyh said...

As it can certainly always be reported folks stars zjfgksy benefit from getting into oakley frogskins in the personalized variations. Along with these kinds of patterns are generally individual for the children. As a result, while the idea happens to the part of fans, these kind of oakley frogskins are set up approximately related to the patterns ones. while correctly as being a happening comes about, that is, your fans in the accurate Oakley place on Oakley sunglasses of these accurate variations. In addition, these are on the way to almost never change his or her style throughout getting into oakley jawbone .Your younger looking girls-oriented Oakley sunglasses, by way of example, are generally actually common. These kind of sun glasses could be the effects involving reduction regular along with cool issues jointly. specifically can be additional, your charges involving oakley flak jacket may be affordable. This has confirmed that will plenty of buyers will probably pay for the children. And thus, oakley radar can invest in just about any shade as well as any kind Oakley sunglasses whenever they similar to. Your component can be the belief that fans will certainly adhere to your patterns in the idols, of course getting into Oakley sunglasses.Normally, duplicate Oakley sunglasses may be affordable.

 
At 4:05 AM, Blogger bestzyh said...

Though these kind of oakley frogskins may be fabricated along with uijgfnhm classy, these are cheap. this specific actually is primarily since nearly all while using users involving Oakley sunglasses, your enormous men and women, are not able to spend on deluxe solutions. most of the charges involving oakley frogskins presented from the market are generally underneath one hundred bucks. Your temple involving oakley jawbone can be wide-ranging along with comprehensive involving creative imagination.Zero matter your fine rounded radian or maybe your oblong composition, your temple involving oakley flak jacket can be delicate. The idea not simply calls for your seen elegance into mind, but in addition can be warm for you to don. moreover for you to these kind of, your permanent fixture involving chemical along with shade can be fair. Right now, you may can understand the contact lenses involving individual's oakley radar come to be even bigger along with more substantial. buyers whom place on some Oakley sunglasses using enormous contact lenses declare who's may screen his or her good individuality.

 
At 12:31 AM, Blogger 一笑千年 said...

I need to think fsdjhjhl of a two of oakley frogskins .After an extensive time operating under the sun, I feel rather uncomfortable, and I can have a couple oakley frogskins to support me protect my little brown eyes. I've lived with bad eyesight for virtually every lengthy time period, I need to think of a two of oakley jawbone to support me view items obviously and guard the eye by powerful sun light and extra violet radiations. Subsequently, I want to purchase a couple oakley flak jacket at on-line spectacles shop to be a end reaction to their higher high class and tolerable prices.Make a gross sales pitch and train your people today to consequence your shoppers to obtain your oakley radar . in scenario you could have perfect sales guys and saleswomen, it may improve ones margins. with comparability to help clothes, Oakley sunglasses tend to be attempted oneasily with not significantly more than something like 20 seconds. with scenario people exhibit most of these in check-out companies, your people can sporting them whilst delaying with regard to their change and own it within their buy which shows extra profit.

 
At 2:25 AM, Blogger 一笑千年 said...

They may be Oakley Sunglasses Discount trjgfhpo promoting creating a much more clear perspective. In fact, Cheap Oakley Sunglasses is normally an assortment of Oakley sunglasses and also Oakleys, plus the Oakley sunglasses, which is often quick to the significant classification sun shades, express to supply best quality and also a added brilliant world for your wearers.If you'd prefer normal Oakley Frogskins sporting activities, then you definately should certainly examine acquiring a couple of Oakley Jawbone . These kinds of performer sun shades are usually especially designed for extreme normal water ailments. The particular executive guiding the particular style and design from your Oakley Jawbone Sunglasses is approximately permitting you to notice greater while using the copyrighted Trend 500 and also 500 sun shades. It won't need to value an individual a great provide and also a lower leg to have Oakley sunglasses. when you retailer with a certified on the net supplier, you may receive the least expensive price tag Oakley sunglasses.Once we relate for your significant classification, practically almost every person can feel from your Oakley television set which is often intended to offer you significant decision photo while using the electronic digital sign approach stuck.

 
At 8:57 PM, Blogger 一笑千年 said...

Oakley Sunglasses Discount is visual compromise and the other hfkjtylt is eye protection. In fact, bifocal safety glass is neither a sole nor a strange member in the large family of eyewear products. Prescription Cheap Oakley Sunglasses and prescription goggles are both special types of eyewear that come in a similar design principle.They are designed to shield your eyes from the ultra violet rays of the sun and make it more comfortable for you to see when you're outside. Why do some people want to wear them indoors or at night? In fact, there is no need in wearing them. Maybe they think wearing cool Oakley Frogskins can make them cooler. Other occasions like a social gathering or setting, it is also not suitable to wear Oakley sunglasses. People at the parties will presumably have conversations with others they are interested in.Children will think those Oakley Jawbone are good and can make them more attractive. Of course, now the Oakley sunglasses for children vary a lot in styles that can fit any demand and interest. The Oakley Jawbone Sunglasses of some film characters are also very popular among children. Those Oakley sunglasses are a little expensive than ordinary Oakley sunglasses. Parents should thus let their children do their own choices on what to buy. As sometimes, children will be unsatisfied with the patents' choices. What parents should do only is to consider whether those Oakley sunglasses are durable, comfortable, suitable, etc.It is difficult to approach a new person and say hello to them when someone is wearing dark, cool Oakley sunglasses.

 
At 10:41 PM, Blogger maxnewser said...

The Oakley Frogskins line has mnbgqhj in particular become a hot favorite with popular celebrities and fashion savvy people. Adding a pair of Oakley Frogskin to a great outfit is an easy way to Cheap Oakley Sunglasses class up what you're already wearing. Celebrities have long hid behind Oakley Jawbone the dark shades of their Oakley sunglasses, and many possess up to ten pairs or more. There is a huge selection of Oakley Jawbones styles, prices and features out there C it's difficult to choose which pair is best.

 
At 2:59 PM, Anonymous Anonymous said...

Nike Air Max| Nike free run|Nike free run cheap|Nike free run womens|Nike Air Max TN|Nike Air Max tailwind|Nike Air Max 2009|Nike Air Max 95|Nike Air Max 97|Nike Air Max shoes|cheap Air force ones

 
At 9:40 PM, Blogger qinbincai123 said...

Television is not real life. In real sjijfj88 life people actually have to leave
the coffee shop and go to jobs.
Cheap New Era Hats

New Era 59fifty Hats

New Era 59fifty caps

New Era Hats Wholesale

Cheap Hats

 
At 4:48 PM, Anonymous pay per head said...

hello i like a lot your blog, has very good information. thanks by sharing this information

 

Post a Comment

<< Home