home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1994-11-15 | 2.5 KB | [TEXT/CWIE] |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: Zoom.c
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Compact Compressed (Unix) (archive/compact)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
10%
| dexvert
| Jesper Olsen Module (music/jesperOlsen)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Tue Nov 15 04:48:12 1994, modified Tue Nov 15 04:48:12 1994, creator 'CWIE', type ASCII, 1817 bytes "Zoom.c" , at 0x799 414 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
49%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
33%
| TrID
| TTComp archive compressed (bin-4K)
| default (weak)
| |
16%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [CWIE] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 06 5a 6f 6f 6d 2e 63 | 00 00 00 00 00 00 00 00 |..Zoom.c|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 07 19 00 | 00 01 9e aa ee 34 5c aa |........|.....4\.|
|00000060| ee 34 5c 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.4\.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 02 8a 00 00 |........|........|
|00000080| 2f 2a 0d 5a 6f 6f 6d 2e | 63 20 0d 31 30 2f 31 37 |/*.Zoom.|c .10/17|
|00000090| 2f 39 30 09 64 67 70 09 | 74 72 61 6e 73 6c 61 74 |/90.dgp.|translat|
|000000a0| 65 64 20 66 72 6f 6d 20 | 70 61 73 63 61 6c 20 44 |ed from |pascal D|
|000000b0| 6f 57 5a 6f 6f 6d 2e 70 | 20 69 6e 20 49 6e 73 69 |oWZoom.p| in Insi|
|000000c0| 64 65 20 4d 61 63 20 56 | 49 2e 0d 31 30 2f 31 38 |de Mac V|I..10/18|
|000000d0| 2f 39 30 20 64 67 70 09 | 72 65 6d 6f 76 65 64 20 |/90 dgp.|removed |
|000000e0| 70 61 72 74 20 6f 66 20 | 74 68 65 20 63 6f 64 65 |part of |the code|
|000000f0| 20 74 6f 20 6d 61 6b 65 | 20 47 65 74 57 69 6e 64 | to make| GetWind|
|00000100| 6f 77 44 65 76 69 63 65 | 28 29 2c 20 77 68 69 63 |owDevice|(), whic|
|00000110| 68 20 49 20 70 75 74 0d | 09 09 09 09 69 6e 20 47 |h I put.|....in G|
|00000120| 65 74 53 63 72 65 65 6e | 44 65 76 69 63 65 2e 63 |etScreen|Device.c|
|00000130| 0d 38 2f 32 34 2f 39 31 | 09 64 67 70 09 09 4d 61 |.8/24/91|.dgp..Ma|
|00000140| 64 65 20 63 6f 6d 70 61 | 74 69 62 6c 65 20 77 69 |de compa|tible wi|
|00000150| 74 68 20 54 48 49 4e 4b | 20 43 20 35 2e 30 2e 0d |th THINK| C 5.0..|
|00000160| 31 32 2f 32 37 2f 39 31 | 20 64 67 70 09 45 78 74 |12/27/91| dgp.Ext|
|00000170| 72 61 63 74 65 64 20 63 | 6f 64 65 20 74 6f 20 63 |racted c|ode to c|
|00000180| 72 65 61 74 65 20 54 69 | 74 6c 65 42 61 72 48 65 |reate Ti|tleBarHe|
|00000190| 69 67 68 74 2e 63 0d 33 | 2f 32 36 2f 39 32 09 64 |ight.c.3|/26/92.d|
|000001a0| 67 70 09 09 52 65 70 6c | 61 63 65 64 20 75 73 65 |gp..Repl|aced use|
|000001b0| 20 6f 66 20 53 79 73 45 | 6e 76 69 72 6f 6e 73 28 | of SysE|nvirons(|
|000001c0| 29 20 62 79 20 61 20 63 | 61 6c 6c 20 74 6f 20 51 |) by a c|all to Q|
|000001d0| 44 38 45 78 69 73 74 73 | 28 29 2e 0d 36 2f 33 2f |D8Exists|()..6/3/|
|000001e0| 39 34 09 64 67 70 09 72 | 65 70 6c 61 63 65 64 20 |94.dgp.r|eplaced |
|000001f0| 6c 6f 77 2d 6d 65 6d 6f | 72 79 20 67 6c 6f 62 61 |low-memo|ry globa|
|00000200| 6c 20 4d 42 61 72 48 65 | 69 67 68 74 20 62 79 20 |l MBarHe|ight by |
|00000210| 47 65 74 4d 42 61 72 48 | 65 69 67 68 74 28 29 2e |GetMBarH|eight().|
|00000220| 0d 36 2f 31 32 2f 39 34 | 09 64 67 70 09 63 68 61 |.6/12/94|.dgp.cha|
|00000230| 6e 67 65 64 20 22 74 68 | 65 45 76 65 6e 74 22 20 |nged "th|eEvent" |
|00000240| 66 72 6f 6d 20 61 20 67 | 6c 6f 62 61 6c 20 74 6f |from a g|lobal to|
|00000250| 20 61 6e 20 61 72 67 75 | 6d 65 6e 74 20 22 65 76 | an argu|ment "ev|
|00000260| 65 6e 74 22 2c 20 70 61 | 73 73 65 64 20 62 79 20 |ent", pa|ssed by |
|00000270| 61 64 64 72 65 73 73 2e | 0d 2a 2f 0d 23 69 6e 63 |address.|.*/.#inc|
|00000280| 6c 75 64 65 20 22 56 69 | 64 65 6f 54 6f 6f 6c 62 |lude "Vi|deoToolb|
|00000290| 6f 78 2e 68 22 0d 23 69 | 66 20 55 4e 49 56 45 52 |ox.h".#i|f UNIVER|
|000002a0| 53 41 4c 5f 48 45 41 44 | 45 52 53 0d 09 23 69 6e |SAL_HEAD|ERS..#in|
|000002b0| 63 6c 75 64 65 20 3c 4c | 6f 77 4d 65 6d 2e 68 3e |clude <L|owMem.h>|
|000002c0| 0d 23 65 6c 73 65 0d 09 | 23 64 65 66 69 6e 65 20 |.#else..|#define |
|000002d0| 4c 4d 47 65 74 4d 42 61 | 72 48 65 69 67 68 74 28 |LMGetMBa|rHeight(|
|000002e0| 29 20 28 2a 20 28 73 68 | 6f 72 74 20 2a 29 20 30 |) (* (sh|ort *) 0|
|000002f0| 78 30 42 41 41 29 0d 09 | 23 64 65 66 69 6e 65 20 |x0BAA)..|#define |
|00000300| 4c 4d 53 65 74 4d 42 61 | 72 48 65 69 67 68 74 28 |LMSetMBa|rHeight(|
|00000310| 4d 42 61 72 48 65 69 67 | 68 74 56 61 6c 75 65 29 |MBarHeig|htValue)|
|00000320| 20 28 28 2a 20 28 73 68 | 6f 72 74 20 2a 29 20 30 | ((* (sh|ort *) 0|
|00000330| 78 30 42 41 41 29 20 3d | 20 28 4d 42 61 72 48 65 |x0BAA) =| (MBarHe|
|00000340| 69 67 68 74 56 61 6c 75 | 65 29 29 0d 23 65 6e 64 |ightValu|e)).#end|
|00000350| 69 66 0d 0d 76 6f 69 64 | 20 5a 6f 6f 6d 28 57 69 |if..void| Zoom(Wi|
|00000360| 6e 64 6f 77 50 74 72 20 | 74 68 65 57 69 6e 64 6f |ndowPtr |theWindo|
|00000370| 77 2c 69 6e 74 20 7a 6f | 6f 6d 44 69 72 2c 45 76 |w,int zo|omDir,Ev|
|00000380| 65 6e 74 52 65 63 6f 72 | 64 20 2a 65 76 65 6e 74 |entRecor|d *event|
|00000390| 29 0d 7b 0d 09 52 65 63 | 74 20 72 3b 0d 09 47 44 |).{..Rec|t r;..GD|
|000003a0| 48 61 6e 64 6c 65 20 64 | 6f 6d 69 6e 61 6e 74 47 |Handle d|ominantG|
|000003b0| 44 65 76 69 63 65 3b 0d | 09 69 6e 74 20 68 65 61 |Device;.|.int hea|
|000003c0| 64 52 6f 6f 6d 3b 0d 09 | 47 72 61 66 50 74 72 20 |dRoom;..|GrafPtr |
|000003d0| 73 61 76 65 50 6f 72 74 | 3b 0d 09 0d 09 69 66 28 |savePort|;....if(|
|000003e0| 54 72 61 63 6b 42 6f 78 | 28 74 68 65 57 69 6e 64 |TrackBox|(theWind|
|000003f0| 6f 77 2c 65 76 65 6e 74 | 2d 3e 77 68 65 72 65 2c |ow,event|->where,|
|00000400| 7a 6f 6f 6d 44 69 72 29 | 29 7b 0d 09 09 47 65 74 |zoomDir)|){...Get|
|00000410| 50 6f 72 74 28 26 73 61 | 76 65 50 6f 72 74 29 3b |Port(&sa|vePort);|
|00000420| 0d 09 09 53 65 74 50 6f | 72 74 28 74 68 65 57 69 |...SetPo|rt(theWi|
|00000430| 6e 64 6f 77 29 3b 0d 09 | 09 45 72 61 73 65 52 65 |ndow);..|.EraseRe|
|00000440| 63 74 28 26 74 68 65 57 | 69 6e 64 6f 77 2d 3e 70 |ct(&theW|indow->p|
|00000450| 6f 72 74 52 65 63 74 29 | 3b 09 09 2f 2a 72 65 63 |ortRect)|;../*rec|
|00000460| 6f 6d 6d 65 6e 64 65 64 | 20 66 6f 72 20 63 6f 73 |ommended| for cos|
|00000470| 6d 65 74 69 63 20 72 65 | 61 73 6f 6e 73 2a 2f 0d |metic re|asons*/.|
|00000480| 09 09 2f 2a 20 49 66 20 | 74 68 65 72 65 20 69 73 |../* If |there is|
|00000490| 20 74 68 65 20 70 6f 73 | 73 69 62 69 6c 69 74 79 | the pos|sibility|
|000004a0| 20 6f 66 20 6d 75 6c 74 | 69 70 6c 65 20 67 44 65 | of mult|iple gDe|
|000004b0| 76 69 63 65 73 2c 20 74 | 68 65 6e 20 77 65 20 2a |vices, t|hen we *|
|000004c0| 2f 0d 09 09 2f 2a 20 6d | 75 73 74 20 63 68 65 63 |/.../* m|ust chec|
|000004d0| 6b 20 74 68 65 6d 20 74 | 6f 20 6d 61 6b 65 20 73 |k them t|o make s|
|000004e0| 75 72 65 20 77 65 20 61 | 72 65 20 7a 6f 6f 6d 69 |ure we a|re zoomi|
|000004f0| 6e 67 20 6f 6e 74 6f 20 | 74 68 65 20 72 69 67 68 |ng onto |the righ|
|00000500| 74 20 2a 2f 0d 09 09 2f | 2a 20 64 69 73 70 6c 61 |t */.../|* displa|
|00000510| 79 20 64 65 76 69 63 65 | 20 77 68 65 6e 20 7a 6f |y device| when zo|
|00000520| 6f 6d 69 6e 67 20 6f 75 | 74 2e 20 2a 2f 0d 09 09 |oming ou|t. */...|
|00000530| 69 66 28 7a 6f 6f 6d 44 | 69 72 3d 3d 69 6e 5a 6f |if(zoomD|ir==inZo|
|00000540| 6f 6d 4f 75 74 20 26 26 | 20 51 44 38 45 78 69 73 |omOut &&| QD8Exis|
|00000550| 74 73 28 29 29 7b 0d 09 | 09 09 68 65 61 64 52 6f |ts()){..|..headRo|
|00000560| 6f 6d 3d 54 69 74 6c 65 | 42 61 72 48 65 69 67 68 |om=Title|BarHeigh|
|00000570| 74 28 74 68 65 57 69 6e | 64 6f 77 29 3b 0d 09 09 |t(theWin|dow);...|
|00000580| 09 2f 2a 20 57 65 20 6d | 75 73 74 20 63 72 65 61 |./* We m|ust crea|
|00000590| 74 65 20 61 20 7a 6f 6f | 6d 20 72 65 63 74 61 6e |te a zoo|m rectan|
|000005a0| 67 6c 65 20 6d 61 6e 75 | 61 6c 6c 79 20 69 6e 20 |gle manu|ally in |
|000005b0| 74 68 69 73 20 63 61 73 | 65 2e 20 2a 2f 0d 09 09 |this cas|e. */...|
|000005c0| 09 2f 2a 20 41 63 63 6f | 75 6e 74 20 66 6f 72 20 |./* Acco|unt for |
|000005d0| 6d 65 6e 75 20 62 61 72 | 20 68 65 69 67 68 74 20 |menu bar| height |
|000005e0| 61 73 20 77 65 6c 6c 2c | 20 69 66 20 6f 6e 20 6d |as well,| if on m|
|000005f0| 61 69 6e 20 64 65 76 69 | 63 65 20 2a 2f 0d 09 09 |ain devi|ce */...|
|00000600| 09 64 6f 6d 69 6e 61 6e | 74 47 44 65 76 69 63 65 |.dominan|tGDevice|
|00000610| 3d 47 65 74 57 69 6e 64 | 6f 77 44 65 76 69 63 65 |=GetWind|owDevice|
|00000620| 28 74 68 65 57 69 6e 64 | 6f 77 29 3b 0d 09 09 09 |(theWind|ow);....|
|00000630| 69 66 28 64 6f 6d 69 6e | 61 6e 74 47 44 65 76 69 |if(domin|antGDevi|
|00000640| 63 65 3d 3d 47 65 74 4d | 61 69 6e 44 65 76 69 63 |ce==GetM|ainDevic|
|00000650| 65 28 29 29 20 68 65 61 | 64 52 6f 6f 6d 20 2b 3d |e()) hea|dRoom +=|
|00000660| 20 4c 4d 47 65 74 4d 42 | 61 72 48 65 69 67 68 74 | LMGetMB|arHeight|
|00000670| 28 29 3b 0d 09 09 09 72 | 3d 28 2a 64 6f 6d 69 6e |();....r|=(*domin|
|00000680| 61 6e 74 47 44 65 76 69 | 63 65 29 2d 3e 67 64 52 |antGDevi|ce)->gdR|
|00000690| 65 63 74 3b 0d 09 09 09 | 53 65 74 52 65 63 74 28 |ect;....|SetRect(|
|000006a0| 26 72 2c 72 2e 6c 65 66 | 74 2b 33 2c 72 2e 74 6f |&r,r.lef|t+3,r.to|
|000006b0| 70 2b 68 65 61 64 52 6f | 6f 6d 2b 33 2c 72 2e 72 |p+headRo|om+3,r.r|
|000006c0| 69 67 68 74 2d 33 2c 72 | 2e 62 6f 74 74 6f 6d 2d |ight-3,r|.bottom-|
|000006d0| 33 29 3b 0d 09 09 09 2f | 2a 20 53 65 74 20 75 70 |3);..../|* Set up|
|000006e0| 20 74 68 65 20 57 53 74 | 61 74 65 44 61 74 61 20 | the WSt|ateData |
|000006f0| 72 65 63 6f 72 64 20 66 | 6f 72 20 74 68 69 73 20 |record f|or this |
|00000700| 77 69 6e 64 6f 77 2e 20 | 2a 2f 0d 09 09 09 28 2a |window. |*/....(*|
|00000710| 28 28 57 53 74 61 74 65 | 44 61 74 61 20 2a 2a 29 |((WState|Data **)|
|00000720| 28 28 57 69 6e 64 6f 77 | 50 65 65 6b 29 74 68 65 |((Window|Peek)the|
|00000730| 57 69 6e 64 6f 77 29 2d | 3e 64 61 74 61 48 61 6e |Window)-|>dataHan|
|00000740| 64 6c 65 29 29 2d 3e 73 | 74 64 53 74 61 74 65 20 |dle))->s|tdState |
|00000750| 3d 20 72 3b 0d 09 09 7d | 0d 09 09 5a 6f 6f 6d 57 |= r;...}|...ZoomW|
|00000760| 69 6e 64 6f 77 28 74 68 | 65 57 69 6e 64 6f 77 2c |indow(th|eWindow,|
|00000770| 7a 6f 6f 6d 44 69 72 2c | 54 52 55 45 29 3b 0d 09 |zoomDir,|TRUE);..|
|00000780| 09 53 65 74 50 6f 72 74 | 28 73 61 76 65 50 6f 72 |.SetPort|(savePor|
|00000790| 74 29 3b 0d 09 7d 0d 7d | 0d 00 00 00 00 00 00 00 |t);..}.}|........|
|000007a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000007f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000800| 00 00 01 00 00 00 01 60 | 00 00 00 60 00 00 00 3e |.......`|...`...>|
|00000810| 66 72 6f 6d 20 6d 61 69 | 6e 20 70 72 6f 67 72 61 |from mai|n progra|
|00000820| 6d 20 2a 2f 0d 09 0d 09 | 69 66 28 54 72 61 63 6b |m */....|if(Track|
|00000830| 06 5a 6f 6f 6d 2e 63 5a | 02 00 00 00 54 45 58 54 |.Zoom.cZ|....TEXT|
|00000840| 43 57 49 45 01 00 00 3c | 06 60 00 00 00 00 ad b1 |CWIE...<|.`......|
|00000850| 00 00 54 45 58 54 43 57 | 49 45 01 00 00 3c 06 60 |..TEXTCW|IE...<.`|
|00000860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000870| 00 00 a3 42 5a 97 00 00 | 07 19 00 00 01 9e 64 6f |...BZ...|......do|
|00000880| 77 29 3b 0d 09 09 45 72 | 61 73 65 52 65 63 74 28 |w);...Er|aseRect(|
|00000890| 26 74 68 65 57 69 6e 64 | 6f 77 2d 3e 70 6f 72 74 |&theWind|ow->port|
|000008a0| 52 65 63 74 29 3b 09 09 | 2f 2a 72 65 63 6f 6d 6d |Rect);..|/*recomm|
|000008b0| 65 6e 64 65 64 20 66 6f | 72 20 63 6f 73 6d 65 74 |ended fo|r cosmet|
|000008c0| 69 63 20 72 65 61 73 6f | 6e 73 2a 2f 0d 09 09 2f |ic reaso|ns*/.../|
|000008d0| 2a 20 49 66 20 74 68 65 | 72 65 20 69 73 20 74 68 |* If the|re is th|
|000008e0| 65 20 70 6f 73 73 69 62 | 69 6c 69 74 79 20 6f 66 |e possib|ility of|
|000008f0| 20 6d 75 6c 74 69 70 6c | 65 20 67 44 65 76 69 63 | multipl|e gDevic|
|00000900| 00 00 00 10 00 01 00 00 | 02 d9 00 00 02 dd 05 5a |........|.......Z|
|00000910| 6f 6f 6d 00 00 00 00 48 | 00 09 4d 6f 6e 61 63 6f |oom....H|..Monaco|
|00000920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000930| 00 00 00 00 00 00 00 00 | 00 00 00 06 00 04 00 2a |........|.......*|
|00000940| 00 03 01 8d 02 7d 00 28 | 00 04 01 8c 02 7c aa ed |.....}.(|.....|..|
|00000950| fc 22 00 00 02 d3 00 00 | 02 d3 00 00 00 00 00 00 |."......|........|
|00000960| 00 00 01 00 00 00 01 60 | 00 00 00 60 00 00 00 3e |.......`|...`...>|
|00000970| 00 3a a4 e0 23 fe 00 00 | 00 1c 00 3e 00 00 4d 50 |.:..#...|...>..MP|
|00000980| 53 52 00 01 00 0a 03 ef | ff ff 00 00 00 00 00 00 |SR......|........|
|00000990| 00 00 03 ed ff ff 00 00 | 00 14 00 3a 9f d0 00 00 |........|...:....|
|000009a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+