Re: WebBrowser border



Hello Igor,

Normally, one implements IDocHostUIHandler and returns
DOCHOSTUIFLAG_NO3DBORDER flag from GetHostInfo. I don't know how any of
this works out on WinCE.

Instead of simply returning E_NOTIMPL I now fill the DOCHOSTUIINFO
structure. Here's my code:

STDMETHOD(GetHostInfo)(DOCHOSTUIINFO *pInfo)
{
pInfo->cbSize = sizeof(DOCHOSTUIINFO);
pInfo->dwFlags = DOCHOSTUIFLAG_NO3DBORDER;
pInfo->dwDoubleClick = DOCHOSTUIDBLCLK_DEFAULT;
return S_OK;
// return E_NOTIMPL;
}

For some reason this doesn't work. Altough the method is called several
times the border is still there. BTW, setting the DOCHOSTUIFLAG_SCROLL_NO
flag successfully removes the scroll bars.

Any idea? Are there other IDocHostUIHandler methods I've to implement? At
the moment all methods return E_NOTIMPL.

Also, the term "3D Border" is confusing me. The white border I want to
remove doesn't look 3D at all. Maybe there's a chance that we're speaking of
different things. Are there other borders?

Greetings


.