home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacFormat España 21
/
macformat_21.iso
/
Shareware
/
Programación
/
VideoToolbox
/
VideoToolboxSources
/
TitleBarHeight.c
< prev
next >
Wrap
Text File
|
1993-02-23
|
427b
|
23 lines
/*
TitleBarHeight.c
Returns the height of a window's title bar, in pixels.
HISTORY:
12/29/91 dgp extracted from Zoom.c
*/
#include "VideoToolbox.h"
int TitleBarHeight(WindowPtr window)
{
WindowPtr oldPort;
int headRoom;
Point pt;
GetPort(&oldPort);
SetPort(window);
pt.v=window->portRect.top;
LocalToGlobal(&pt);
headRoom=pt.v-1-(*((WindowPeek)window)->strucRgn)->rgnBBox.top;
SetPort(oldPort);
return headRoom;
}