; Max AsmIIGS equates file for CDev message values and flag bits
; Copyright (c) 1989-1990, Apple Computer, Inc, All Rights Reserved

MachineCDEV		equ		1				;machine test, return 0 if NOT ok to run on this machine
BootCDEV		equ		2				;boot time init call or Install call - no parms
ShutDownCDEV	equ		3				;shut down or de-install the CDEV - no parms
InitCDEV		equ		4				;called when being shown - data1 = windowPtr
CloseCDEV		equ		5				;called when being removed - data1 = windowPtr
EventsCDEV		equ		6				;call3ed when an event - data1 = ptr to event record
CreateCDEV		equ		7				;called so that a CDEV can create its controls inline - data1 = window
AboutCDEV		equ		8				;called so that a CDEV can create its about text inline - no parms
RectCDEV		equ		9				;called so that a CDEV can dynamically compute its rectangle data1 = rectprr
HitCDEV			equ		10				;called when ctl is "hit" - data1 = Hdl to ctl hit, data2 = Ctl Id
RunCDEV			equ		11				;called when daRun is called
reserved1		equ		12				;reserved for Apple Computer's future use
reserved2		equ		13				;reserved for Apple Computer's future use
reserved3		equ		14				;reserved for Apple Computer's future use
NeverUsed1		equ		15
NeverUsed2		equ		16

wantMachine		equ		1				;these flags are set in the CDEV flags resource to tell the Control
wantBoot		equ		2				;panel which of the above messages the CDEV actually needs
wantShutDown	equ		4
wantInit		equ		8
wantClose		equ		16
wantEvents		equ		32
wantCreate		equ		64
wantAbout		equ		128
wantRect		equ		256
wantHit			equ		512
wantRun			equ		1024
wantReserved1	equ		2048
wantReserved2	equ		4096
wantReserved3	equ		8192
updateSSfromBRAM equ	16384			;this is for use by Apple Computer, Inc ONLY! <- I mean it!
CanBeUnActive	equ		32768			;set this bit if the cdev can be made inactive by the user

