How to Cleanly Destroy WebBrowser Control

前端 未结 3 455
夕颜
夕颜 2021-02-04 21:09

I am using ATL in VisualC++10 to host browser control. My code is similar to this example: http://msdn.microsoft.com/en-us/library/9d0714y1(v=vs.80).aspx

Difference is I

3条回答
  •  滥情空心
    2021-02-04 21:36

    If I use DialogBox and drop a IEControl on it as a resource and DialogBox is derived from CAxDialogImpl<> - then while I call DestroyWindow() of dialogBox then it is automatically doing the cleanup() - which is what I required. But originally I wanted to get rid of DialogBox itself and use IEControl directly on my Window, it seems not..

提交回复
热议问题