; File:  E16.Window
;
;
; Copyright Apple Computer, Inc. 1986-90
; All Rights Reserved
;
;
paramLenErr EQU $0E01  ; first word of parameter list is the wrong size
allocateErr EQU $0E02  ; unable to allocate window record
taskMaskErr EQU $0E03  ; bits 12-15 are not clear in WmTaskMask field of EventRecord
wNoConstraint EQU $0000  ; No constraint on movement.
wHAxisOnly EQU $0001  ; Horizontal axis only.
wVAxisOnly EQU $0002  ; Vertical axis only.
FromDesk EQU $00  ; Subtract region from desktop
ToDesk EQU $1  ; Add region to desktop
GetDesktop EQU $2  ; Get Handle of Desktop region
SetDesktop EQU $3  ; Set Handle of Desktop region
GetDeskPat EQU $4  ; Address of  pattern or drawing routine
SetDeskPat EQU $5  ; Change Address of  pattern or drawing routine
GetVisDesktop EQU $6  ; Get destop region less visible windows.
BackGroundRgn EQU $7  ; For drawing directly on desktop.
toBottom EQU $FFFFFFFE  ; To send window to bottom.
topMost EQU $FFFFFFFF  ; To make window top.
bottomMost EQU $0000  ; To make window bottom.
tmMenuKey EQU $00000001
tmUpdate EQU $00000002
tmFindW EQU $00000004
tmMenuSel EQU $0008
tmOpenNDA EQU $0010
tmSysClick EQU $0020
tmDragW EQU $0040
tmContent EQU $0080
tmClose EQU $0100
tmZoom EQU $0200
tmGrow EQU $0400
tmScroll EQU $0800
tmSpecial EQU $1000
tmCRedraw EQU $2000
tmInactive EQU $4000
tmInfo EQU $8000
tmContentControls EQU $00010000
tmControlKey EQU $00020000
tmControlMenu EQU $00040000
tmMultiClick EQU $00080000
tmIdleEvents EQU $00100000
wNoHit EQU $0000  ; retained for back compatibility. 
inNull EQU $0000  ; retained for back compatibility
inKey EQU $0003  ; retained for back compatibility
inButtDwn EQU $0001  ; retained for back compatibility
inUpdate EQU $0006  ; retained for back compatibility
wInDesk EQU $0010  ; On Desktop
wInMenuBar EQU $0011  ; On system menu bar
wClickCalled EQU $0012  ; system click called
wInContent EQU $0013  ; In content region
wInDrag EQU $0014  ; In drag region
wInGrow EQU $0015  ; In grow region, active window only
wInGoAway EQU $0016  ; In go-away region, active window only
wInZoom EQU $0017  ; In zoom region, active window only
wInInfo EQU $0018  ; In information bar
wInSpecial EQU $0019  ; Item ID selected was 250 - 255
wInDeskItem EQU $001A  ; Item ID selected was 1 - 249
wInFrame EQU $1B  ; in Frame, but not on anything else
wInactMenu EQU $1C  ; 'selection' of inactive menu item
wClosedNDA EQU $001D  ; desk accessory closed
wCalledSysEdit EQU $001E  ; inactive menu item selected
wInSysWindow EQU $8000  ; hi bit set for system windows
wDraw EQU $00  ; Draw window frame command.
wHit EQU $01  ; Hit test command.
wCalcRgns EQU $02  ; Compute regions command.
wNew EQU $03  ; Initialization command.
wDispose EQU $04  ; Dispose command.
fHilited EQU $0001  ; Window is highlighted.
fZoomed EQU $0002  ; Window is zoomed.
fAllocated EQU $0004  ; Window record was allocated.
fCtlTie EQU $0008  ; Window state tied to controls.
fInfo EQU $0010  ; Window has an information bar.
fVis EQU $0020  ; Window is visible.
fQContent EQU $0040
fMove EQU $0080  ; Window is movable.
fZoom EQU $0100  ; Window is zoomable.
fFlex EQU $0200
fGrow EQU $0400  ; Window has grow box.
fBScroll EQU $0800  ; Window has horizontal scroll bar.
fRScroll EQU $1000  ; Window has vertical scroll bar.
fAlert EQU $2000
fClose EQU $4000  ; Window has a close box.
fTitle EQU $8000  ; Window has a title bar.
windSize EQU $00D4  ; Size of WindRec.
wmTaskRecSize EQU $002E  ; Size of WmTaskRec.
wTrackZoom EQU $001F
wHitFrame EQU $0020
wInControl EQU $0021
wInControlMenu EQU $0022
; offset constants for WindColor
oframeColor EQU 0
otitleColor EQU 2
otBarColor EQU 4
ogrowColor EQU 6
oinfoColor EQU 8
; offset constants for WindRec
owNext EQU 0
oport EQU 4  ; Window's port
owDefProc EQU 174
owrRefCon EQU 178
owContDraw EQU 182
owReserved EQU 186  ; Space for future expansion
owStrucRgn EQU 190  ; Region of frame plus content.
owContRgn EQU 194  ; Content region.
owUpdateRgn EQU 198  ; Update region.
owControls EQU 202  ; Window's control list.
owFrameCtrls EQU 206  ; Window frame's control list.
owFrame EQU 210
; offset constants for ParamList
oparamLength EQU 0  ; Parameter to NewWindow. 
owFrameBits EQU 2  ; Parameter to NewWindow.
owTitle EQU 4  ; Parameter to NewWindow.
owRefCon EQU 8  ; Parameter to NewWindow.
owZoom EQU 12  ; Parameter to NewWindow.
owColor EQU 20  ; Parameter to NewWindow.
owYOrigin EQU 24  ; Parameter to NewWindow.
owXOrigin EQU 26  ; Parameter to NewWindow.
owDataH EQU 28  ; Parameter to NewWindow.
owDataW EQU 30  ; Parameter to NewWindow.
owMaxH EQU 32  ; Parameter to NewWindow.
owMaxW EQU 34  ; Parameter to NewWindow.
owScrollVer EQU 36  ; Parameter to NewWindow.
owScrollHor EQU 38  ; Parameter to NewWindow.
owPageVer EQU 40  ; Parameter to NewWindow.
owPageHor EQU 42  ; Parameter to NewWindow.
owInfoRefCon EQU 44  ; Parameter to NewWindow.
owInfoHeight EQU 48  ; height of information bar
owFrameDefProc EQU 50  ; Parameter to NewWindow.
owInfoDefProc EQU 54  ; Parameter to NewWindow.
owContDefProc EQU 58  ; Parameter to NewWindow.
owPosition EQU 62  ; Parameter to NewWindow.
owPlane EQU 70  ; Parameter to NewWindow.
owStorage EQU 74  ; Parameter to NewWindow.
; offset constants for DeskMessageRecord
odmreserved EQU 0
odmmessageType EQU 4
odmdrawType EQU 6
