You should be able to use the file:// URL format to open a file.
For ex, call the OpenWebPage() function with something like
"file:///C:/TEMP/test1.html" as an argument.
CORONA,FATIMA , HP-Boise,ex1 wrote:
>Hi,
>
>I am trying to open winEmbed with an HTML page as a default page when it
>first starts up, instead of tyring to open a URL site. I don't know what
>these functions do in the file winEmbed.cpp though... which I believe are
>the ones that start searching the URL and load it in to the browser window
>as a start up page.
>
>nsresult OpenWebPage(const char *url)
>{
> :
> :
> :
> // Start loading a page
> nsCOMPtr<nsIWebBrowser> newBrowser;
> chrome->GetWebBrowser(getter_AddRefs(newBrowser));
> nsCOMPtr<nsIWebNavigation> webNav(do_QueryInterface(newBrowser));
> return webNav->LoadURI(NS_ConvertASCIItoUCS2(url).GetUnicode(),
> nsIWebNavigation::LOAD_FLAGS_NONE);
> }
>
> return rv;
>}
>
>Does anybody know what each of these lines do?
>
>Thanks,
>
>Fatima
>