IWebBrowser2->ExecMB(...) problem
-
-
Sorry to bother you guys yet another time :), but I keep getting a stack overflow whenever I call this line: g_pThis->m_spWebBrowser2->ExecWB(OLECMDID_NEW,OLECMDEXECOPT_DODEFAULT,Var1,Var2); I thought I was doing everything right, but I guess not... :D
Ok, I think the problem is that there is more than one item under the File->New menu. Is there any way that I could call the New->Window submenu? Possibly with a value in Var1? If there isn't, does anyone know an easy way to open a new IE window, which my ATL object could control?
-
Ok, I think the problem is that there is more than one item under the File->New menu. Is there any way that I could call the New->Window submenu? Possibly with a value in Var1? If there isn't, does anyone know an easy way to open a new IE window, which my ATL object could control?
You can use the Navigate2 function and pass the flag navOpenInNewWindow and use about:blank for the URL. Bret Faller Odyssey Computing, Inc.