XtGem Forum catalog

Can not be opened with IE, the session belongs to a unique process is lost, the new window has to be opened with your own browser, that may be, a C ++ box should be set

free data recovery software ()
This really is the DOC document model:
voidCUClientView :: OnNewWindow2 (LPDISPATCH * ppDisp, BOOL * Cancel)

CWinApp * pApp = AfxGetApp ();
POSITIONpos = pApp-GetFirstDocTemplatePosition ();
CDocTemplate * pDocTemplate = pApp-GetNextDocTemplate (pos);
CFrameWnd * pFrame = pDocTemplate-CreateNewFrame (
GetDocument (),
(CFrameWnd *) AfxGetMainWnd ());
pDocTemplate-InitialUpdateFrame (pFrame, NULL);
CUClientView * pView = (CUClientView *) pFrame-GetActiveView ();
pView-SetRegisterAsDropTarget (TRUE);
* ppDisp = pView-GetApplication ();


There is absolutely no DOC model for this:
voidCNoticeHtmlView :: OnNewWindow2 (LPDISPATCH * ppDisp, BOOL * Cancel)
CMainFrame * pMainFrm = (CMainFrame *) AfxGetMainWnd ();
CChildFrame * m_pNoticeView = newCChildFrame ();
m_pNoticeView-SetNeedBar (FALSE);
CCreateContextcontext;
context.m_pNewViewClass = RUNTIME_CLASS (CNoticeHtmlView);
if (! m_pNoticeView-LoadFrame (IDR_MAINFRAME, WS_OVERLAPPEDWINDOW, pMainFrm, context))
m_pNoticeView-InitialUpdateFrame (NULL, correct);
m_pNoticeView-SetWindowText (_T ('xxxxx'));
CNoticeHtmlView * pWBVw = (CNoticeHtmlView *) (m_pNoticeView-GetActiveView ());
ASSERT (pWBVw);
pWBVw-SetRegisterAsBrowser (Correct);
* ppDisp = pWBVw-GetApplication ();
if (* ppDisp! = NULL)
* Cancel = FALSE;

In home page , I can use my new window to open the connected pop-up window (or the pop-up window of ie).
To be able to close the window when clicking the close window button on the webpage, I reloaded
BOOLCUClientView :: PreTranslateMessage (MSG * pMsg)

if (pMsg-message == WM_CLOSEpMsg-hwnd == m_wndBrowser.GetSafeHwnd ())

PostMessage (WM_COMMAND, ID_FILE_CLOSE);
returnCHtmlView :: PreTranslateMessage (pMsg);




The result is the fact that after you click the close window button on the web page, all of the connected internet pages are closed! !
Tips on how to solve this challenge!
The problem is extremely troublesome, I look forward to a master to help me! thank free data recovery software ! !
Back to posts
This post has no comments - be the first one!

UNDER MAINTENANCE