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

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

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