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: Accommodating menu bar when making full-screen window?




On Oct 26, 2007, at 6:29 PM, Rick Mann wrote:

Hi. I'm using

::CGDisplayPixelsHigh(::CGMainDisplayID());

to get the height of the main display, so that I can create a desktop group window of that height. But I'd like to shrink my window by the size of the menu bar, and I don't know the right way to get that distance.

Any suggestions? GetMBarHeight() might work, but it seems like there should be something in CG to do it "better".

CG doesn't know anything about the menubar; to CG, the menubar is just another window.


GetMBarHeight is a good choice.

-eric

_______________________________________________
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
References: 
 >Accommodating menu bar when making full-screen window? (From: Rick Mann <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.