Description
When a Web application is opened in Internet Explorer, you may see both the Internet Explorer menu and the Web application menu. It is possible to design an HTML file or C++ program to remove the Internet Explorer menu.
Workaround
Method 1: In the application folder under the Web server Web root, create an HTML file named appeon.html for loading the Web application. For example,
<html> <head> <title>Appeon Web Library </title> </head> <script language="javascript"> function startApp() { g_newWindow = window.open("index.html", "_blank", "location=no,titlebar=no,toolbar=no,menubar=no,status=no,resizable=yes",false); } </script> <body> <script language="javascript"> startApp() </script> </body> </html>
Note: In order for sFeatures settings to take effect, the sName argument in the Open method must be "_blank". This opens a new Internet Explorer window for index.html (the index page of the Web application) and hides the Internet Explorer menu.
Instead of loading Index.html as the entry page for Appeon Web applications, load the appeon.html file using a URL similar to this: http://host:port/appname/appeon.html. When the Open method in the appeon.html file is triggered, the Index.html page will be loaded in a new Internet Explorer window.
Method 2: Create a C++ program that utilizes COM API on the Client side.
The sample code in the C++ program is as follows:
// Start a new Internet Explorer as a separate process IWebBrowser2* pIE = NULL; HRESULT hr; hr = CoCreateInstance(CLSID_InternetExplorer, NULL, CLSCTX_SERVER, IID_IWebBrowser2, (LPVOID*)&pIE); // if open IE OK if (SUCCEEDED(hr)) { pIE->put_Visible(TRUE); pIE->put_AddressBar(FALSE); pIE->put_MenuBar(FALSE); pIE->put_StatusBar(TRUE); pIE->put_ToolBar(FALSE); pIE->put_FullScreen(FALSE); COleVariant vtEmpty; CString strURL = "http://appeonserver:81"; // The URL to be opened by the program. BSTR bstrURL = strURL.AllocSysString(); pIE->Navigate(bstrURL, &vtEmpty, &vtEmpty, &vtEmpty, &vtEmpty); ::SysFreeString(bstrURL);}
If the user runs the C++ program on the Client machine, the Web application will be opened in an Internet Explorer browser and the display mode of the Internet Explorer browser is specified in the C++ program.