on Wed, 28 Jun 2006 02:27:48, Stephen Kay <email@hidden> wrote:
> I did what you suggested using the windowList, and it works perfectly when I
> option click on a window's close box.
>
> But when I call the same code in response to a "Close All" item on my File
> Menu, GetWindowList() seems to return a pointer to the menu (a single window
> of name "File"), and the code fails.
There is some bug in your code. Once you fix it (for better
understanding what's going on), just switch to GetFrontWindowOfClass/
GetNextWindowOfClass (appropriate class) so that menu windows and
other unrelated windows will just not be in the iterated list.
Mike
_______________________________________________
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