Home > Software engineering >  C dialog using CHtmlView show web page closed after an error dialog
C dialog using CHtmlView show web page closed after an error dialog

Time:11-16

First of all, I have a dialog page, will make the HTML release is completed, the page using CHtmlView Navigate2 will do play in the dialog,

Then, there is no close button dialog, in my page has a close button, ordered after the close button, will pass to the c + + a command,

C + + to call this - & gt; EndDialog (IDOK) to close the whole dialogue window,

Now the problem is after the execution of EndDialog collapsed directly,

Click the stop button, after has the following tips

My doubt is in front of the closed, no threads that are relevant to CHtmlView shut down, and unable to give MSHTML. The c + + DLL sending messages,

What a great god know what's going on, urgent!!!!!!!

CodePudding user response:

From the top, don't sink ah ~ ~ ~ ~ ~ ~ ~ ~!!!!!!!!!!!

CodePudding user response:

APP wizard to generate a HTML dialog based application, comparative observation under

CodePudding user response:

refer to the second floor zgl7903 response:
APP wizard to generate a HTML dialog based application, comparative observation under


Please let the specific how to do? The small white don't know much about thank you!

CodePudding user response:


Try to use the release double-clicked, if abnormal operation, then the debug debugging,

CodePudding user response:

From your problem completely don't see what's the relationship between your dialog and HTMLView but if the View in your dialog box can't write, so you can't order before it is processed in the View of the View destroyed, really want to close can Post a message again and then close the window in the custom message processing,

CodePudding user response:

reference 5 floor Jiang Sheng reply:
from your problem completely don't see what's the relationship between your dialog and HTMLView but if the View in your dialog box can't write, so you can't order before it is processed in the View of the View were destroyed, really want to close to Post a message, and then close the window in the custom message processing,


Eldest brother said seems a little bit, because before the program is broadcast Flash files, now no, use the HTML 5
So I haven't changed, other middle added a htmlview to separate and web interaction, it is as you say, can't finish in the view of command processing before the destruction of the view,
Then I detailed how to destroy the view, let me dialog normally closed?

My small white, eldest brother said in detail as far as possible some trouble,

CodePudding user response:

reference 4 floor smwhotjay response:

Try to use the release double-clicked, if abnormal operation, then the debug debugging,


Release version exe running when what also don't suggest, also does not have any action, should still abnormal,

CodePudding user response:

What a great god help think of bai,

Post can't sink,

CodePudding user response:

http://blog.chinaunix.net/uid-20214278-id-1725242.html

CodePudding user response:

In the command processing can send dialog WM_CLOSE
  • Related