Mailing Lists: Apple Mailing Lists

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

Window attrs don't seem to restore properly



When switching from "normal" mode to desktop window mode, I first save the current attributes of the window, then set a few for desktop mode. When I restore to "normal" mode, I set the saved attributes back. However, when it comes back, the window ignores clicks.

I do something like this when entering desktop mode:

::GetWindowAttributes(mWindow, &mDesktopModeSavedAttrs);
ChangeWindowAttributes(kWindowDoesNotCycleAttribute
			| kWindowNoShadowAttribute
			| kWindowIgnoreClicksAttribute,
			kWindowNoAttributes);


When ending desktop mode:

ChangeWindowAttributes(mDesktopModeSavedAttrs, ~mDesktopModeSavedAttrs);


This seems like it should work, but I can no longer grow the window or drag it. It's as if the ignore clicks attribute is not cleared.


So I tried to clear it explicitly after restoring the window, and it still doesn't work. Am I missing something else?

TIA,
Rick

_______________________________________________
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


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.