Saturday, May 1, 2010

Fullscreen Internet Explorer

To run the Internet Explorer in fullscreen,
   iexplore.exe -k
Below is the C++ code in calling Internet Explorer to show 2 tab pages in fullscreen mode:

CComQIPtr sp = pActiveSite;
(pActiveSite is IOleClientSite *)
CComPtr m_pBrowser;
HRESULT hr = sp->QueryService(IID_IWebBrowserApp, IID_IWebBrowser2,
(void**)&m_pBrowser);
VARIANT_BOOL v = VARIANT_FALSE;
VARIANT_BOOL v1 = VARIANT_TRUE;

m_pBrowser->put_TheaterMode(v1);
m_pBrowser->put_TheaterMode(v);
Reference:
http://www.vistaheads.com/forums/microsoft-public-internetexplorer-general/289892-ie7-fullscreen-toggle-effect-programmatically-similar-like-f11.html

No comments:

Post a Comment