Home > Software engineering >  The events of ie cannot capture the ocx
The events of ie cannot capture the ocx

Time:09-23

Problem description:
I wrote a ocx controls, for web client calls preview video, but encountered a problem: now I put the video download progress through the way of event is returned to the container, ocx call with Microsoft to provide test container (TSTCON32. EXE) test all normal can receive the download progress event, but the ocx is embedded into the web page, the browser has been can not capture the download progress event, being tortured for almost a week, then I wrote a test event (when click on the screen to send container, an event notification is clicked on the screen, this event TSTCON32. EXE and web pages can be captured, later I see two events a way where there is different, the results showed that: screen click event is directly controlled by code I sent, and download progress is calls to send events in the callback function, problems have appeared here? How to solve? .

CodePudding user response:

Search "BHO"?

CodePudding user response:

Teacher, I took a BHO (browser help object) its function is used to personalize and customize the browser's new features, and what I want is a generic ocx, not only can be used in the browser, but also need to use c # client, so you have no other solution?

CodePudding user response:

Baidu search keywords related to
Read the section inside the MSDN
.

CodePudding user response:

In the callback object pointer and direct control object pointer

CodePudding user response:

Event is written in the thread?

CodePudding user response:

Put the events in the main thread, in the events in the child thread, IE is not detectable

CodePudding user response:

Your callback should be in the child thread triggered, js is single-threaded, so can't catch, you should send a message to the main thread of the window, the window of the main thread to trigger event,
  • Related