Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTHtmlView and AfxEnableControlContainer
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTHtmlView and AfxEnableControlContainer

 Post Reply Post Reply
Author
Message
Italo View Drop Down
Groupie
Groupie


Joined: 10 December 2003
Location: United States
Status: Offline
Points: 83
Post Options Post Options   Thanks (0) Thanks(0)   Quote Italo Quote  Post ReplyReply Direct Link To This Post Topic: CXTHtmlView and AfxEnableControlContainer
    Posted: 27 July 2004 at 12:31pm

I’m creating and instance of CXTHtmlView with a custom COleControlSite. The problem is that CXTHtmlView::Create calls AfxEnableControlContainer which sets the default control site. Can this be removed from the method? I don’t see a problem having the user call AfxEnableControlContainer before creating an instance of CXTHtmlView.

Thanks, Italo

Back to Top
Ark42 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 20 October 2003
Status: Offline
Points: 291
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ark42 Quote  Post ReplyReply Direct Link To This Post Posted: 27 July 2004 at 12:53pm

I'm not sure what the point of CXTHtmlView is compared to CHtmlView.  I hear in MFC 7 there is a lot more functionality in CHtmlView, but if you are stuck with MFC 6, you are better off creating your own CHtmlView class.
I made my own that includes the fixes from Q241750 and also uses the control site modifications to disable the context menu and drag-and-drop URL feature. There are tons of samples around the web on how to do this, some with even tons more features like if you want to program window.external from javascript. Personally I just stick to forms in the html.  Its pretty easy to use OnBeforeNavigate2 to get the form values and OnDownloadComplete to set them.

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.