CXTHtmlView and AfxEnableControlContainer |
Post Reply |
Author | |
Italo
Groupie Joined: 10 December 2003 Location: United States Status: Offline Points: 83 |
Post Options
Thanks(0)
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 |
|
Ark42
Senior Member Joined: 20 October 2003 Status: Offline Points: 291 |
Post Options
Thanks(0)
|
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. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |