Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » CHtmlView in SDI Collapse All
Subject Author Date
Rado Manzela Jul 16, 2007 - 6:08 AM

Is it possible to use CHtmlView in prof-uis as view in SDI ?
I’ve put chtmlview derived class into SDI sample, but it is crashing (is it bug in prof-uis, or have I kade some mistake?).
Here is the sample project : http://rrrado.szm.sk/htmlview.zip
It crashes when you right click into view (webbrowser’s context menu is shown) then close the application.
Any ideas why?

Thank you!

Technical Support Jul 16, 2007 - 1:22 PM

The problem should be gone if you add one line of code:

BOOL CMainFrame::DestroyWindow() 
{
      . . .
      SetActiveView( NULL ); // THIS LINE WAS ADDED
      return CExtNCW < CFrameWnd >::DestroyWindow();
}

Rado Manzela Jul 17, 2007 - 3:15 AM

It works, thank you!