Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Attributes from a kEventWindowBoundsChanging



On Thursday, May 15, 2003, at 12:01 PM, John Cebasek wrote:

'Morning all:

In my kEventWindowBoundsChanging handler for window resizing, I do the following:

GetEventParameter(event, kEventParamAttributes, typeUInt32, NULL, sizeof(UInt32), NULL, &attributes);
if ((attributes & kEventWindowBoundsChanged) == kEventWindowBoundsChanged)
{
}

However, attributes is never kEventWindowBoundsChanged (which is 27), if I log the GetEventParameter, all I see is a 6 (which is deactivated?)

Why would I never get a bounds changed message in the windows changing handler if I'm resizing a window. Or better yet, what's a '6'? It shouldn't be deactivated, should it???

Any hints would be appreciated.

First off, you won't see kEventWindowBoundsChanged as an event param attribute, it is a parameter for a BoundsChanged event. A value of 6 for the kEventParamAttributes of a bounds changing event would mean UserResize & SizeChanged.

If you are looking to get the event kind, use GetEventKind(), which will return kEventWindowBoundsChanged for that event (assuming the event is in the kEventWindowClass)
--
Reality is what, when you stop believing in it, doesn't go away.
Failure is not an option. It is a privilege reserved for those who try.

David Duncan
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.

References: 
 >Attributes from a kEventWindowBoundsChanging (From: John Cebasek <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.