Thursday, February 03, 2005

MSHTML Hosting - Editing Tricks

Show Table Borders

This is a little feature like you find in MS Word. It will display table invisible borders in light gray color so you can see the structure of the table even if borders are turned off. The feature only works when the WebBrowser is in design mode. Since it's an IOleCommandTarget editing command ID, it's quite simple to use:


IHTMLDocument2* pDoc = ...;

// Turn on editor mode
pDoc->put_designMode(CComBSTR(L"on"));

// Execute some commands
IOleCommandTarget* pCmdTarget = 0;
hr = pDoc->QueryInterface(IID_IOleCommandTarget, (void**)&pCmdTarget);
if (SUCCEEDED(hr)) {
  pCmdTarget->Exec(&CGID_MSHTML, IDM_SHOWZEROBORDERATDESIGNTIME,
                   OLECMDEXECOPT_DONTPROMPTUSER, CComVariant(true), NULL);
  pCmdTarget->Release();
}

Note the MSDN lists editing ID's separately from regular ID's.

Use DIV for Paragraph Breaks

Normally, when you press ENTER in design mode, WebBrowser will insert a paragraph tag, <P>, as a break. This can create large amounts whitespace between paragraphs since <P> tags are rendered with more padding than a simple line break. You can setup a CSS class or a style change the padding or you could tell WebBrowser to use <DIV> tags instead. There are two ways I know of to get WebBrowser to use <DIV> tags:

12 Comments:

At 2:43 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 6:04 AM, Blogger Larah said...

I enjoyed by reading this post.

custom writing

 
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 10:28 PM, Blogger 一笑千年 said...

In reality, almost almost all colors enables you vbnfuyt to brush or perhaps tint prescribed oakley frogskins . Generally, cheap Oakley sunglasses virtual test can become fallen directly into several sorts and different online vendors could have their distinct ones. oakley frogskins can be abbreviated directly into "try-on" or perhaps "virtual try-on". In any manner, one can easily open this kind of item when he desires to choose his / her beloved low-cost oakley jawbone . Another extremely professional low-cost Oakley sunglasses virtual test is founded on the info of peoples' faces and also heads. Such test oakley flak jacket will be professional and also complicated, yet very correct. Some blanks concerning people's face can be filled, like the length, size, height with the face, brow, and a great many other oakley radar

 
At 2:41 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:04 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 3:00 PM, Anonymous Anonymous said...

Nike Air force ones|Nike Air Max Sale|Nike free 3.0|Cheap Nike Frees|Nike Air Max TN|Nike Air Max tailwind 2010|Nike Air Max 2009 Sale|Nike Air Max 95 sale|Nike Air Max 97 sale|Nike Air Max sale

 
At 2:54 AM, OpenID hosting-web said...

This is what I have been searching in many websites and I finally found it here. Amazing article. I am so impressed. Could never think of such a thing is possible with it...I think you have a great  knowledge especially while dealings with such subjects.hosting in india

 
At 1:51 AM, Anonymous Poker said...

This is extremely impressive content. I like how you brought forward many clear viewpoints and I agree with many. Your article coaxes thought out of the reader from start to finish. I really like this.
--------------------------
Bonus Sans Depot & Bonos Sin Deposito Poker & Bonus ohne einzahlung & Poker Bonus senza deposito

 
At 1:52 AM, Anonymous Poker said...

This article is material that is absorbing and interesting. The points made here are original.
--------------------------
Site: Free Bankrolls for Poker Bonuses for Poker rooms.

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

Great site!!! this information really helped me

 

Post a Comment

<< Home