// and you will want SinkQTEvent declared in the header for the class
like this
BEGIN_SINK_MAP(CMainWindow)
SINK_ENTRY_EX(ID_CHILD_CONTROL, DIID__IQTControlEvents, 1, SinkQTEvent)
END_SINK_MAP()
void __stdcall SinkQTEvent(long EventClass, long EventID, long Phase,
IQTEventObject* EventObject, VARIANT_BOOL* Cancel);
</code>
Hope this helps. I did not put in much error checking and I left out
how to handle the other events (I can show you that if you wish). I
believe there is some documentation coming soon but I just do not know
when.
Tom McHale
QuickTime Engineering
On Aug 16, 2005, at 7:56 AM, email@hidden
wrote:
Hello everyone
over the past weeks I've been experimenting with the new QuckTime
ActiveX control, and I realize that it's still being changed quite a
bit, and no documentation seems to be available yet. Nevertheless, I
find it very practical as the simpler functionality is intuitive to
use, and with a little QuickTime api knowldege, many other aspects of
the control can be guessed at as well.
What I haven't figured out, however, is how I can make the control
fire QTEvent notifications. And I suspect that QTEvent is the only way
to get more precise notifications about what the control is doing.
With the version 7.0.2.70 update (public preview 3, I believe), for
example, the control doesn't seem to be sending messages like
"Buffering..." as StatusUpdate events anymore. So if I'd like
"Buffering.." back, I'd probably have to subscribe to some event
interface now...
I've tried subscribing to events in the following way:
I've tried registring for events with other interfaces (not just
control.QuickTime) as well, and I've called EventListeners.Add() with
other argument combinations - all without success.
My question is therefore: Does anyone have more detailed knowledge on
how to get QTEvent events out of the new QuickTime control?
Besides the fact that I'm not entirely sure about which combinations
of QTEventClassesEnum and QTEventIDsEnum are allowed, I have no clue
as to what values tha Flags prameter (3rd argument of the
EventListeners.Add() method) should be. The fourth argument I'd expect
to be some subscriber reference.
Any help would be greatly apprecieated, thanks.
Baenz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-api/email@hidden