home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
magazine
/
drdobbs
/
1988
/
03
/
krute
/
krute.ls4
< prev
next >
Wrap
Text File
|
1987-12-03
|
3KB
|
68 lines
*----------------------------------- file information ----------------------------- *
* *
* rectCDEFEqu.Txt *
* *
* *
* Private definitions for rectCDEF.Asm *
* *
* Edited with QUED/M 2.04 *
* Compiled under MDS 2.01 *
* *
* Written and ⌐1987 by Stan Krute. All rights reserved. No part of this file, or *
* the object code it leads to, may be reproduced, in any form or by any means, *
* without the express written permission of the author and copyright holder. *
* *
* Timestamp: 1:56 am EST September 29, 1987 *
* Spacestamp: 21E Halcyon Drive West Yarmouth, Massacusetts 02673 *
* *
* This file looks good in 9 point Courier, QUED/M 2.04 tabs set to 3 *
* *
*-------------------------------------------------------------------------------- *
*----------------------------------- equates -------------------------------------- *
; stack frame offsets for function parameters
returnAddress EQU 4 ; return address' offset in frame
param EQU 8 ; for long-word-size parameter
message EQU 12 ; control message identifies desired operation
theControl EQU 14 ; calling control's handle's offset in frame
varCode EQU 18 ; which variation of the control
theResult EQU 20 ; function result offset in frame
; stack frame offsets for automatic (local) variables
entryPenState EQU -18 ; room to hold entry pen state (18 bytes)
currentGrafPort EQU -22 ; pointer to current grafPort ( 4 bytes )
curFontAndFace EQU -26 ; saved font number and style ( 4 bytes )
curSize EQU -28 ; saved font size ( 2 bytes )
fontInfo EQU -36 ; information about current font ( 8 bytes )
entryClipRgnCopy EQU -40 ; handle to copy of entry clip region (4 bytes)
interiorClipRect EQU -48 ; a clipping rectangle (8 bytes)
pictRect EQU -56 ; a PICTure bounding rectangle (8 bytes)
iconRect EQU -56 ; an ICON bounding rectangle (8 bytes)
usingCCRsrc EQU -58 ; flags use ofcontent change resource (2 bytes)
autoBytes EQU 58 ; size in bytes of automatic variable area
; hilite codes
inact254 EQU 254 ; hilite code to inactivate control
inact255 EQU 255 ; hilite code to inactivate control
; icon stuff
iconSize EQU 32 ; width and height of icon
; id's for our control definition
wholePartNumber EQU 10 ; part number for our whole control
; test bits
textBit EQU 7 ; if set, it's a text button
pictBit EQU 6 ; if set, it's a PICT button
iconBit EQU 5 ; if set, it's an ICON button
outBit EQU 4 ; if set, the button is outlined
shadBit EQU 3 ; if set, the button's outline is shadowed
bareBit EQU 2 ; if set, the button has no outline
invBit EQU 1 ; if set, the button shows hiliting via inversion
chngBit EQU 0 ; if set, the button shows hiliting via content change
; the control's data block
cntlDataBlokSize EQU 8 ; size of the control's data block
firstRsrcHndl EQU 0 ; offset of first data block field
secondRsrcHndl EQU 4 ; offset of second data block field