On 7/31/05 3:52 AM, Yaron Tadmor didst favor us with:
> To create and post the event I use:
>
> EventRef event;
> CreateEvent (NULL, 'XXXX', 'XXXX', GetCurrentEventTime(),
> kEventAttributeUserEvent, &event);
>
> To send the even I use:
>
> EventTargetRef target = GetWindowEventTarget (winRef);
> SetEventParameter (event, 'prtg', 'etrg', sizeof (target), target);
> PostEventToQueue(GetCurrentEventQueue(), event, kEventPriorityStandard));
More named constants ('prtg' is not correct):
SetEventParameter (event, kEventParamPostTarget, typeEventTargetRef, sizeof
(target), &target);
I also noticed your code won't compile because of the extra ')' as the end
of the PostEventToQueue. How close is this code to the code you're actually
using?
Larry
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden
This email sent to email@hidden