How do I adjust the height and width returned by CGDisplayBounds by the menu bar height and the dock height (or width if it attached to the side)?
I need to do this using only Carbon calls.
How do I adjust the height and width returned by CGDisplayBounds by the menu bar height and the dock height (or width if it attached to the side)?
I need to do this using only Carbon calls.
Leaving aside that you really ought to be moving away from Carbon already…
Use the HIWindowGetAvailablePositioningBounds
function.
If you need it to work in 64-bit, then you're just going to have to use Cocoa.