Remove border on activex ie control

2019-08-20 11:19发布

问题:

For the application im building, i use an activex ie control. It works greate but i cant work out how to remove the border around it.

I have tried overriding the invoke call and setting DISPID_BORDERSTYLE to zero but it looks like it never gets hit.

Any ideas?

回答1:

I think you need to implement IDocHostUIHandler on your host. then in GetHostInfo you can return the DOCHOSTUIFLAG_NO3DBORDER or DOCHOSTUIFLAG_NO3DOUTERBORDER flag.