home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 January / macpower199701.bin / AMUG / Programming_10 / Videotoolbox 96-08-22-c.sit / VideoToolbox / VideoToolboxSources / HideMenuBar.c < prev    next >
MacBinary  |  1995-07-26  |  5.0 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: HideMenuBar.c

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Wed Jul 26 04:16:55 1995, modified Wed Jul 26 04:16:55 1995, creator 'CWIE', type ASCII, 4299 bytes "HideMenuBar.c" , at 0x114b 612 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0d 48 69 64 65 4d 65 | 6e 75 42 61 72 2e 63 00 |..HideMe|nuBar.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 10 cb 00 | 00 02 64 ac 3b aa 77 ac |........|..d.;.w.|
|00000060| 3b aa 77 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |;.w.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 49 6b 00 00 |........|....Ik..|
|00000080| 2f 2a 0d 48 69 64 65 4d | 65 6e 75 42 61 72 2e 63 |/*.HideM|enuBar.c|
|00000090| 0d 0d 42 61 73 65 64 20 | 6f 6e 3a 0d 0d 22 43 6f |..Based |on:.."Co|
|000000a0| 64 65 20 67 61 64 67 65 | 74 73 3a 20 48 69 64 69 |de gadge|ts: Hidi|
|000000b0| 6e 67 20 74 68 65 20 6d | 65 6e 75 20 62 61 72 22 |ng the m|enu bar"|
|000000c0| 2c 20 54 48 49 4e 4b 69 | 6e 27 20 43 61 50 2c 20 |, THINKi|n' CaP, |
|000000d0| 31 28 32 29 3a 32 38 2d | 32 39 2c 20 46 61 6c 6c |1(2):28-|29, Fall|
|000000e0| 20 31 39 39 30 2e 0d 43 | 6f 70 79 72 69 67 68 74 | 1990..C|opyright|
|000000f0| 20 a9 20 31 39 39 31 20 | 53 50 4c 41 73 68 20 52 | . 1991 |SPLAsh R|
|00000100| 65 73 6f 75 72 63 65 73 | 2e 0d 0d 61 6e 64 0d 0d |esources|...and..|
|00000110| 53 79 6d 61 6e 74 65 63 | 20 54 48 49 4e 4b 20 52 |Symantec| THINK R|
|00000120| 65 66 65 72 65 6e 63 65 | 20 32 2c 20 22 48 6f 77 |eference| 2, "How|
|00000130| 20 74 6f 20 48 69 64 65 | 20 74 68 65 20 4d 65 6e | to Hide| the Men|
|00000140| 75 42 61 72 22 2e 0d 0d | 48 49 53 54 4f 52 59 3a |uBar"...|HISTORY:|
|00000150| 0d 32 2f 32 38 2f 39 31 | 20 64 67 70 20 61 64 64 |.2/28/91| dgp add|
|00000160| 65 64 20 74 6f 20 56 69 | 64 65 6f 54 6f 6f 6c 62 |ed to Vi|deoToolb|
|00000170| 6f 78 0d 38 2f 32 34 2f | 39 31 09 64 67 70 09 4d |ox.8/24/|91.dgp.M|
|00000180| 61 64 65 20 63 6f 6d 70 | 61 74 69 62 6c 65 20 77 |ade comp|atible w|
|00000190| 69 74 68 20 54 48 49 4e | 4b 20 43 20 35 2e 0d 31 |ith THIN|K C 5..1|
|000001a0| 2f 32 35 2f 39 33 20 64 | 67 70 20 72 65 6d 6f 76 |/25/93 d|gp remov|
|000001b0| 65 64 20 6f 62 73 6f 6c | 65 74 65 20 73 75 70 70 |ed obsol|ete supp|
|000001c0| 6f 72 74 20 66 6f 72 20 | 54 48 49 4e 4b 20 43 20 |ort for |THINK C |
|000001d0| 34 2e 0d 31 2f 32 35 2f | 39 33 09 64 67 70 20 52 |4..1/25/|93.dgp R|
|000001e0| 65 70 6c 61 63 65 64 20 | 53 79 73 45 71 75 2e 68 |eplaced |SysEqu.h|
|000001f0| 20 62 79 20 4c 6f 4d 65 | 6d 2e 68 20 61 6e 64 20 | by LoMe|m.h and |
|00000200| 63 68 61 6e 67 65 64 20 | 70 72 6f 67 72 61 6d 20 |changed |program |
|00000210| 61 63 63 6f 72 64 69 6e | 67 6c 79 2e 0d 32 2f 32 |accordin|gly..2/2|
|00000220| 33 2f 39 33 09 64 67 70 | 09 43 61 6c 6c 20 43 6f |3/93.dgp|.Call Co|
|00000230| 70 79 51 75 69 63 6b 44 | 72 61 77 47 6c 6f 62 61 |pyQuickD|rawGloba|
|00000240| 6c 73 20 74 6f 20 6d 61 | 6b 65 20 73 75 72 65 20 |ls to ma|ke sure |
|00000250| 71 64 20 69 73 20 76 61 | 6c 69 64 2e 0d 32 2f 32 |qd is va|lid..2/2|
|00000260| 37 2f 39 33 09 64 67 70 | 20 45 64 69 74 65 64 20 |7/93.dgp| Edited |
|00000270| 74 68 65 20 63 6f 64 65 | 20 61 6e 64 20 63 6f 6d |the code| and com|
|00000280| 6d 65 6e 74 73 2c 20 70 | 61 72 74 6c 79 20 63 6f |ments, p|artly co|
|00000290| 70 79 69 6e 67 20 66 72 | 6f 6d 20 54 48 49 4e 4b |pying fr|om THINK|
|000002a0| 20 52 65 66 65 72 65 6e | 63 65 27 73 0d 09 09 09 | Referen|ce's....|
|000002b0| 73 75 67 67 65 73 74 69 | 6f 6e 20 66 6f 72 20 68 |suggesti|on for h|
|000002c0| 6f 77 20 74 6f 20 64 6f | 20 74 68 69 73 2e 20 54 |ow to do| this. T|
|000002d0| 68 69 73 20 77 61 73 20 | 70 72 6f 6d 70 74 65 64 |his was |prompted|
|000002e0| 20 62 79 20 44 61 76 69 | 64 20 42 72 61 69 6e 61 | by Davi|d Braina|
|000002f0| 72 64 27 73 0d 09 09 09 | 72 65 70 6f 72 74 20 74 |rd's....|report t|
|00000300| 68 61 74 20 74 68 65 73 | 65 20 72 6f 75 74 69 6e |hat thes|e routin|
|00000310| 65 73 20 77 65 72 65 20 | 63 72 61 73 68 69 6e 67 |es were |crashing|
|00000320| 20 77 68 65 6e 20 63 61 | 6c 6c 65 64 20 77 69 74 | when ca|lled wit|
|00000330| 68 69 6e 20 74 68 65 0d | 09 09 09 4d 41 54 4c 41 |hin the.|...MATLA|
|00000340| 42 20 65 6e 76 69 72 6f | 6e 6d 65 6e 74 2e 20 54 |B enviro|nment. T|
|00000350| 68 65 20 6d 61 69 6e 20 | 63 68 61 6e 67 65 73 20 |he main |changes |
|00000360| 61 72 65 20 74 6f 20 61 | 6c 73 6f 20 63 61 6c 6c |are to a|lso call|
|00000370| 0d 09 09 09 43 61 6c 63 | 56 69 73 42 65 68 69 6e |....Calc|VisBehin|
|00000380| 64 28 29 20 61 66 74 65 | 72 20 72 65 73 74 6f 72 |d() afte|r restor|
|00000390| 69 6e 67 2c 20 61 6e 64 | 20 74 6f 20 75 73 65 20 |ing, and| to use |
|000003a0| 44 69 66 66 52 67 6e 0d | 09 09 09 74 6f 20 72 65 |DiffRgn.|...to re|
|000003b0| 73 74 6f 72 65 20 62 79 | 20 63 75 74 74 69 6e 67 |store by| cutting|
|000003c0| 20 74 68 65 20 6d 65 6e | 75 20 62 61 72 20 62 61 | the men|u bar ba|
|000003d0| 63 6b 20 6f 75 74 20 6f | 66 20 74 68 65 20 64 65 |ck out o|f the de|
|000003e0| 73 6b 74 6f 70 0d 09 09 | 09 69 6e 73 74 65 61 64 |sktop...|.instead|
|000003f0| 20 6f 66 20 72 65 73 74 | 6f 72 69 6e 67 20 62 79 | of rest|oring by|
|00000400| 20 63 6f 70 79 69 6e 67 | 20 66 72 6f 6d 20 61 20 | copying| from a |
|00000410| 73 61 76 65 64 20 63 6f | 70 79 20 6f 66 20 74 68 |saved co|py of th|
|00000420| 65 20 72 65 67 69 6f 6e | 2e 20 0d 33 2f 33 2f 39 |e region|. .3/3/9|
|00000430| 33 09 64 67 70 09 41 64 | 64 65 64 20 53 71 75 61 |3.dgp.Ad|ded Squa|
|00000440| 72 65 43 6f 72 6e 65 72 | 73 20 61 6e 64 20 52 65 |reCorner|s and Re|
|00000450| 73 74 6f 72 65 43 6f 72 | 6e 65 72 73 2c 20 77 69 |storeCor|ners, wi|
|00000460| 74 68 20 73 75 70 70 6f | 72 74 20 66 6f 72 20 31 |th suppo|rt for 1|
|00000470| 2d 62 69 74 20 71 75 69 | 63 6b 64 72 61 77 2e 0d |-bit qui|ckdraw..|
|00000480| 31 30 2f 38 2f 39 34 09 | 64 67 70 09 4d 61 64 65 |10/8/94.|dgp.Made|
|00000490| 20 63 6f 6d 70 61 74 69 | 62 6c 65 20 77 69 74 68 | compati|ble with|
|000004a0| 20 41 70 70 6c 65 27 73 | 20 6e 65 77 20 55 6e 69 | Apple's| new Uni|
|000004b0| 76 65 72 73 61 6c 20 48 | 65 61 64 65 72 73 20 61 |versal H|eaders a|
|000004c0| 6e 64 20 50 6f 77 65 72 | 50 43 2e 0d 2a 2f 0d 23 |nd Power|PC..*/.#|
|000004d0| 69 6e 63 6c 75 64 65 20 | 22 56 69 64 65 6f 54 6f |include |"VideoTo|
|000004e0| 6f 6c 62 6f 78 2e 68 22 | 0d 2f 2f 23 69 6e 63 6c |olbox.h"|.//#incl|
|000004f0| 75 64 65 20 3c 4d 65 6e | 75 73 2e 68 3e 0d 23 69 |ude <Men|us.h>.#i|
|00000500| 66 20 55 4e 49 56 45 52 | 53 41 4c 5f 48 45 41 44 |f UNIVER|SAL_HEAD|
|00000510| 45 52 53 0d 09 23 69 6e | 63 6c 75 64 65 20 3c 4c |ERS..#in|clude <L|
|00000520| 6f 77 4d 65 6d 2e 68 3e | 0d 09 23 69 66 20 55 4e |owMem.h>|..#if UN|
|00000530| 49 56 45 52 53 41 4c 5f | 48 45 41 44 45 52 53 3e |IVERSAL_|HEADERS>|
|00000540| 31 0d 09 09 23 64 65 66 | 69 6e 65 20 57 69 6e 64 |1...#def|ine Wind|
|00000550| 6f 77 50 65 65 6b 20 57 | 69 6e 64 6f 77 52 65 66 |owPeek W|indowRef|
|00000560| 0d 09 23 65 6e 64 69 66 | 0d 23 65 6c 73 65 0d 09 |..#endif|.#else..|
|00000570| 23 64 65 66 69 6e 65 20 | 4c 4d 47 65 74 4d 42 61 |#define |LMGetMBa|
|00000580| 72 48 65 69 67 68 74 28 | 29 20 28 2a 20 28 73 68 |rHeight(|) (* (sh|
|00000590| 6f 72 74 20 2a 29 20 30 | 78 30 42 41 41 29 0d 09 |ort *) 0|x0BAA)..|
|000005a0| 23 64 65 66 69 6e 65 20 | 4c 4d 53 65 74 4d 42 61 |#define |LMSetMBa|
|000005b0| 72 48 65 69 67 68 74 28 | 4d 42 61 72 48 65 69 67 |rHeight(|MBarHeig|
|000005c0| 68 74 56 61 6c 75 65 29 | 20 28 28 2a 20 28 73 68 |htValue)| ((* (sh|
|000005d0| 6f 72 74 20 2a 29 20 30 | 78 30 42 41 41 29 20 3d |ort *) 0|x0BAA) =|
|000005e0| 20 28 4d 42 61 72 48 65 | 69 67 68 74 56 61 6c 75 | (MBarHe|ightValu|
|000005f0| 65 29 29 0d 23 65 6e 64 | 69 66 0d 73 74 61 74 69 |e)).#end|if.stati|
|00000600| 63 20 73 68 6f 72 74 20 | 6f 6c 64 4d 42 61 72 48 |c short |oldMBarH|
|00000610| 65 69 67 68 74 3b 09 09 | 09 09 09 2f 2f 20 50 69 |eight;..|...// Pi|
|00000620| 78 65 6c 20 68 65 69 67 | 68 74 20 6f 66 20 74 68 |xel heig|ht of th|
|00000630| 65 20 6d 65 6e 75 20 62 | 61 72 0d 73 74 61 74 69 |e menu b|ar.stati|
|00000640| 63 20 52 67 6e 48 61 6e | 64 6c 65 20 6d 42 61 72 |c RgnHan|dle mBar|
|00000650| 52 67 6e 3d 4e 55 4c 4c | 3b 09 09 09 09 2f 2f 20 |Rgn=NULL|;....// |
|00000660| 52 65 67 69 6f 6e 20 65 | 6e 63 6f 6d 70 61 73 73 |Region e|ncompass|
|00000670| 69 6e 67 20 74 68 65 20 | 6d 65 6e 75 20 62 61 72 |ing the |menu bar|
|00000680| 0d 73 74 61 74 69 63 20 | 52 67 6e 48 61 6e 64 6c |.static |RgnHandl|
|00000690| 65 20 63 6f 72 6e 65 72 | 52 67 6e 5b 4d 41 58 5f |e corner|Rgn[MAX_|
|000006a0| 53 43 52 45 45 4e 53 5d | 3b 0d 0d 76 6f 69 64 20 |SCREENS]|;..void |
|000006b0| 48 69 64 65 4d 65 6e 75 | 42 61 72 28 76 6f 69 64 |HideMenu|Bar(void|
|000006c0| 29 0d 7b 0d 09 52 65 63 | 74 20 72 3b 0d 09 0d 09 |).{..Rec|t r;....|
|000006d0| 69 66 20 28 4c 4d 47 65 | 74 4d 42 61 72 48 65 69 |if (LMGe|tMBarHei|
|000006e0| 67 68 74 28 29 3e 30 29 | 20 7b 0d 09 09 6d 42 61 |ght()>0)| {...mBa|
|000006f0| 72 52 67 6e 3d 4e 65 77 | 52 67 6e 28 29 3b 0d 09 |rRgn=New|Rgn();..|
|00000700| 09 43 6f 70 79 51 75 69 | 63 6b 44 72 61 77 47 6c |.CopyQui|ckDrawGl|
|00000710| 6f 62 61 6c 73 28 29 3b | 09 09 09 09 2f 2f 20 4d |obals();|....// M|
|00000720| 61 6b 65 20 73 75 72 65 | 20 71 64 20 69 73 20 76 |ake sure| qd is v|
|00000730| 61 6c 69 64 0d 09 09 72 | 3d 71 64 2e 73 63 72 65 |alid...r|=qd.scre|
|00000740| 65 6e 42 69 74 73 2e 62 | 6f 75 6e 64 73 3b 0d 09 |enBits.b|ounds;..|
|00000750| 09 72 2e 62 6f 74 74 6f | 6d 3d 72 2e 74 6f 70 2b |.r.botto|m=r.top+|
|00000760| 4c 4d 47 65 74 4d 42 61 | 72 48 65 69 67 68 74 28 |LMGetMBa|rHeight(|
|00000770| 29 3b 0d 09 09 52 65 63 | 74 52 67 6e 28 6d 42 61 |);...Rec|tRgn(mBa|
|00000780| 72 52 67 6e 2c 26 72 29 | 3b 0d 09 09 6f 6c 64 4d |rRgn,&r)|;...oldM|
|00000790| 42 61 72 48 65 69 67 68 | 74 3d 4c 4d 47 65 74 4d |BarHeigh|t=LMGetM|
|000007a0| 42 61 72 48 65 69 67 68 | 74 28 29 3b 0d 09 09 4c |BarHeigh|t();...L|
|000007b0| 4d 53 65 74 4d 42 61 72 | 48 65 69 67 68 74 28 30 |MSetMBar|Height(0|
|000007c0| 29 3b 0d 09 09 55 6e 69 | 6f 6e 52 67 6e 28 47 65 |);...Uni|onRgn(Ge|
|000007d0| 74 47 72 61 79 52 67 6e | 28 29 2c 6d 42 61 72 52 |tGrayRgn|(),mBarR|
|000007e0| 67 6e 2c 47 65 74 47 72 | 61 79 52 67 6e 28 29 29 |gn,GetGr|ayRgn())|
|000007f0| 3b 0d 09 09 50 61 69 6e | 74 4f 6e 65 28 4e 55 4c |;...Pain|tOne(NUL|
|00000800| 4c 2c 6d 42 61 72 52 67 | 6e 29 3b 0d 09 09 43 61 |L,mBarRg|n);...Ca|
|00000810| 6c 63 56 69 73 42 65 68 | 69 6e 64 28 28 57 69 6e |lcVisBeh|ind((Win|
|00000820| 64 6f 77 50 65 65 6b 29 | 46 72 6f 6e 74 57 69 6e |dowPeek)|FrontWin|
|00000830| 64 6f 77 28 29 2c 6d 42 | 61 72 52 67 6e 29 3b 0d |dow(),mB|arRgn);.|
|00000840| 09 7d 0d 7d 0d 0d 76 6f | 69 64 20 53 68 6f 77 4d |.}.}..vo|id ShowM|
|00000850| 65 6e 75 42 61 72 28 76 | 6f 69 64 29 0d 7b 0d 09 |enuBar(v|oid).{..|
|00000860| 69 66 28 4c 4d 47 65 74 | 4d 42 61 72 48 65 69 67 |if(LMGet|MBarHeig|
|00000870| 68 74 28 29 3d 3d 30 20 | 26 26 20 6d 42 61 72 52 |ht()==0 |&& mBarR|
|00000880| 67 6e 21 3d 4e 55 4c 4c | 29 7b 0d 09 09 4c 4d 53 |gn!=NULL|){...LMS|
|00000890| 65 74 4d 42 61 72 48 65 | 69 67 68 74 28 6f 6c 64 |etMBarHe|ight(old|
|000008a0| 4d 42 61 72 48 65 69 67 | 68 74 29 3b 0d 09 09 44 |MBarHeig|ht);...D|
|000008b0| 69 66 66 52 67 6e 28 47 | 65 74 47 72 61 79 52 67 |iffRgn(G|etGrayRg|
|000008c0| 6e 28 29 2c 6d 42 61 72 | 52 67 6e 2c 47 65 74 47 |n(),mBar|Rgn,GetG|
|000008d0| 72 61 79 52 67 6e 28 29 | 29 3b 0d 09 09 44 72 61 |rayRgn()|);...Dra|
|000008e0| 77 4d 65 6e 75 42 61 72 | 28 29 3b 0d 09 09 43 61 |wMenuBar|();...Ca|
|000008f0| 6c 63 56 69 73 42 65 68 | 69 6e 64 28 28 57 69 6e |lcVisBeh|ind((Win|
|00000900| 64 6f 77 50 65 65 6b 29 | 46 72 6f 6e 74 57 69 6e |dowPeek)|FrontWin|
|00000910| 64 6f 77 28 29 2c 6d 42 | 61 72 52 67 6e 29 3b 0d |dow(),mB|arRgn);.|
|00000920| 09 09 44 69 73 70 6f 73 | 65 52 67 6e 28 6d 42 61 |..Dispos|eRgn(mBa|
|00000930| 72 52 67 6e 29 3b 0d 09 | 09 6d 42 61 72 52 67 6e |rRgn);..|.mBarRgn|
|00000940| 3d 4e 55 4c 4c 3b 0d 09 | 7d 0d 7d 0d 0d 76 6f 69 |=NULL;..|}.}..voi|
|00000950| 64 20 53 71 75 61 72 65 | 43 6f 72 6e 65 72 73 28 |d Square|Corners(|
|00000960| 47 44 48 61 6e 64 6c 65 | 20 64 65 76 69 63 65 29 |GDHandle| device)|
|00000970| 0d 2f 2f 20 45 78 74 65 | 6e 64 20 47 72 61 79 52 |.// Exte|nd GrayR|
|00000980| 67 6e 20 74 6f 20 69 6e | 63 6c 75 64 65 20 74 68 |gn to in|clude th|
|00000990| 69 73 20 73 63 72 65 65 | 6e 27 73 20 63 6f 72 6e |is scree|n's corn|
|000009a0| 65 72 73 2c 20 77 68 69 | 63 68 20 6f 74 68 65 72 |ers, whi|ch other|
|000009b0| 77 69 73 65 20 6d 69 67 | 68 74 20 62 65 20 72 6f |wise mig|ht be ro|
|000009c0| 75 6e 64 65 64 20 6f 66 | 66 2e 0d 2f 2f 20 49 66 |unded of|f..// If|
|000009d0| 20 64 65 76 69 63 65 3d | 3d 4e 55 4c 4c 20 74 68 | device=|=NULL th|
|000009e0| 65 6e 20 61 70 70 6c 69 | 65 73 20 74 6f 20 61 6c |en appli|es to al|
|000009f0| 6c 20 73 63 72 65 65 6e | 73 2e 0d 7b 0d 09 69 6e |l screen|s..{..in|
|00000a00| 74 20 69 3b 0d 09 52 65 | 63 74 20 72 3b 0d 09 6c |t i;..Re|ct r;..l|
|00000a10| 6f 6e 67 20 71 75 69 63 | 6b 44 72 61 77 3b 0d 09 |ong quic|kDraw;..|
|00000a20| 0d 09 47 65 73 74 61 6c | 74 28 67 65 73 74 61 6c |..Gestal|t(gestal|
|00000a30| 74 51 75 69 63 6b 64 72 | 61 77 56 65 72 73 69 6f |tQuickdr|awVersio|
|00000a40| 6e 2c 26 71 75 69 63 6b | 44 72 61 77 29 3b 0d 09 |n,&quick|Draw);..|
|00000a50| 69 66 28 71 75 69 63 6b | 44 72 61 77 3c 67 65 73 |if(quick|Draw<ges|
|00000a60| 74 61 6c 74 38 42 69 74 | 51 44 29 7b 0d 09 09 69 |talt8Bit|QD){...i|
|00000a70| 3d 30 3b 0d 09 09 43 6f | 70 79 51 75 69 63 6b 44 |=0;...Co|pyQuickD|
|00000a80| 72 61 77 47 6c 6f 62 61 | 6c 73 28 29 3b 09 09 09 |rawGloba|ls();...|
|00000a90| 09 2f 2f 20 4d 61 6b 65 | 20 73 75 72 65 20 71 64 |.// Make| sure qd|
|00000aa0| 20 69 73 20 76 61 6c 69 | 64 0d 09 09 72 3d 71 64 | is vali|d...r=qd|
|00000ab0| 2e 73 63 72 65 65 6e 42 | 69 74 73 2e 62 6f 75 6e |.screenB|its.boun|
|00000ac0| 64 73 3b 0d 09 09 72 2e | 74 6f 70 2b 3d 4c 4d 47 |ds;...r.|top+=LMG|
|00000ad0| 65 74 4d 42 61 72 48 65 | 69 67 68 74 28 29 3b 0d |etMBarHe|ight();.|
|00000ae0| 09 7d 65 6c 73 65 7b 0d | 09 09 69 66 28 64 65 76 |.}else{.|..if(dev|
|00000af0| 69 63 65 3d 3d 4e 55 4c | 4c 29 7b 0d 09 09 09 66 |ice==NUL|L){....f|
|00000b00| 6f 72 28 69 3d 30 3b 47 | 65 74 53 63 72 65 65 6e |or(i=0;G|etScreen|
|00000b10| 44 65 76 69 63 65 28 69 | 29 21 3d 4e 55 4c 4c 3b |Device(i|)!=NULL;|
|00000b20| 69 2b 2b 29 53 71 75 61 | 72 65 43 6f 72 6e 65 72 |i++)Squa|reCorner|
|00000b30| 73 28 47 65 74 53 63 72 | 65 65 6e 44 65 76 69 63 |s(GetScr|eenDevic|
|00000b40| 65 28 69 29 29 3b 0d 09 | 09 09 72 65 74 75 72 6e |e(i));..|..return|
|00000b50| 3b 0d 09 09 7d 0d 09 09 | 69 3d 47 65 74 53 63 72 |;...}...|i=GetScr|
|00000b60| 65 65 6e 49 6e 64 65 78 | 28 64 65 76 69 63 65 29 |eenIndex|(device)|
|00000b70| 3b 0d 09 09 69 66 28 69 | 3e 3d 4d 41 58 5f 53 43 |;...if(i|>=MAX_SC|
|00000b80| 52 45 45 4e 53 29 72 65 | 74 75 72 6e 3b 0d 09 09 |REENS)re|turn;...|
|00000b90| 72 3d 28 2a 64 65 76 69 | 63 65 29 2d 3e 67 64 52 |r=(*devi|ce)->gdR|
|00000ba0| 65 63 74 3b 0d 09 09 69 | 66 28 64 65 76 69 63 65 |ect;...i|f(device|
|00000bb0| 3d 3d 47 65 74 4d 61 69 | 6e 44 65 76 69 63 65 28 |==GetMai|nDevice(|
|00000bc0| 29 29 72 2e 74 6f 70 2b | 3d 4c 4d 47 65 74 4d 42 |))r.top+|=LMGetMB|
|00000bd0| 61 72 48 65 69 67 68 74 | 28 29 3b 0d 09 7d 0d 09 |arHeight|();..}..|
|00000be0| 63 6f 72 6e 65 72 52 67 | 6e 5b 69 5d 3d 4e 65 77 |cornerRg|n[i]=New|
|00000bf0| 52 67 6e 28 29 3b 0d 09 | 52 65 63 74 52 67 6e 28 |Rgn();..|RectRgn(|
|00000c00| 63 6f 72 6e 65 72 52 67 | 6e 5b 69 5d 2c 26 72 29 |cornerRg|n[i],&r)|
|00000c10| 3b 0d 09 44 69 66 66 52 | 67 6e 28 63 6f 72 6e 65 |;..DiffR|gn(corne|
|00000c20| 72 52 67 6e 5b 69 5d 2c | 47 65 74 47 72 61 79 52 |rRgn[i],|GetGrayR|
|00000c30| 67 6e 28 29 2c 63 6f 72 | 6e 65 72 52 67 6e 5b 69 |gn(),cor|nerRgn[i|
|00000c40| 5d 29 3b 0d 09 69 66 28 | 45 6d 70 74 79 52 67 6e |]);..if(|EmptyRgn|
|00000c50| 28 63 6f 72 6e 65 72 52 | 67 6e 5b 69 5d 29 29 72 |(cornerR|gn[i]))r|
|00000c60| 65 74 75 72 6e 3b 0d 09 | 55 6e 69 6f 6e 52 67 6e |eturn;..|UnionRgn|
|00000c70| 28 47 65 74 47 72 61 79 | 52 67 6e 28 29 2c 63 6f |(GetGray|Rgn(),co|
|00000c80| 72 6e 65 72 52 67 6e 5b | 69 5d 2c 47 65 74 47 72 |rnerRgn[|i],GetGr|
|00000c90| 61 79 52 67 6e 28 29 29 | 3b 0d 09 50 61 69 6e 74 |ayRgn())|;..Paint|
|00000ca0| 42 65 68 69 6e 64 28 28 | 57 69 6e 64 6f 77 50 65 |Behind((|WindowPe|
|00000cb0| 65 6b 29 46 72 6f 6e 74 | 57 69 6e 64 6f 77 28 29 |ek)Front|Window()|
|00000cc0| 2c 63 6f 72 6e 65 72 52 | 67 6e 5b 69 5d 29 3b 0d |,cornerR|gn[i]);.|
|00000cd0| 09 43 61 6c 63 56 69 73 | 42 65 68 69 6e 64 28 28 |.CalcVis|Behind((|
|00000ce0| 57 69 6e 64 6f 77 50 65 | 65 6b 29 46 72 6f 6e 74 |WindowPe|ek)Front|
|00000cf0| 57 69 6e 64 6f 77 28 29 | 2c 63 6f 72 6e 65 72 52 |Window()|,cornerR|
|00000d00| 67 6e 5b 69 5d 29 3b 0d | 7d 0d 0d 76 6f 69 64 20 |gn[i]);.|}..void |
|00000d10| 52 65 73 74 6f 72 65 43 | 6f 72 6e 65 72 73 28 47 |RestoreC|orners(G|
|00000d20| 44 48 61 6e 64 6c 65 20 | 64 65 76 69 63 65 29 0d |DHandle |device).|
|00000d30| 2f 2f 20 52 65 73 74 6f | 72 65 20 72 6f 75 6e 64 |// Resto|re round|
|00000d40| 69 6e 67 20 74 6f 20 74 | 68 69 73 20 73 63 72 65 |ing to t|his scre|
|00000d50| 65 6e 2e 0d 2f 2f 20 49 | 66 20 4e 55 4c 4c 20 74 |en..// I|f NULL t|
|00000d60| 68 65 6e 20 61 70 70 6c | 69 65 73 20 74 6f 20 61 |hen appl|ies to a|
|00000d70| 6c 6c 20 73 63 72 65 65 | 6e 73 2e 0d 7b 0d 09 69 |ll scree|ns..{..i|
|00000d80| 6e 74 20 69 3b 0d 09 6c | 6f 6e 67 20 71 75 69 63 |nt i;..l|ong quic|
|00000d90| 6b 44 72 61 77 3b 0d 09 | 0d 09 47 65 73 74 61 6c |kDraw;..|..Gestal|
|00000da0| 74 28 67 65 73 74 61 6c | 74 51 75 69 63 6b 64 72 |t(gestal|tQuickdr|
|00000db0| 61 77 56 65 72 73 69 6f | 6e 2c 26 71 75 69 63 6b |awVersio|n,&quick|
|00000dc0| 44 72 61 77 29 3b 0d 09 | 69 66 28 71 75 69 63 6b |Draw);..|if(quick|
|00000dd0| 44 72 61 77 3c 67 65 73 | 74 61 6c 74 38 42 69 74 |Draw<ges|talt8Bit|
|00000de0| 51 44 29 7b 0d 09 09 69 | 3d 30 3b 0d 09 7d 65 6c |QD){...i|=0;..}el|
|00000df0| 73 65 7b 0d 09 09 69 66 | 28 64 65 76 69 63 65 3d |se{...if|(device=|
|00000e00| 3d 4e 55 4c 4c 29 7b 0d | 09 09 09 66 6f 72 28 69 |=NULL){.|...for(i|
|00000e10| 3d 30 3b 47 65 74 53 63 | 72 65 65 6e 44 65 76 69 |=0;GetSc|reenDevi|
|00000e20| 63 65 28 69 29 21 3d 4e | 55 4c 4c 3b 69 2b 2b 29 |ce(i)!=N|ULL;i++)|
|00000e30| 52 65 73 74 6f 72 65 43 | 6f 72 6e 65 72 73 28 47 |RestoreC|orners(G|
|00000e40| 65 74 53 63 72 65 65 6e | 44 65 76 69 63 65 28 69 |etScreen|Device(i|
|00000e50| 29 29 3b 0d 09 09 09 72 | 65 74 75 72 6e 3b 0d 09 |));....r|eturn;..|
|00000e60| 09 7d 0d 09 09 69 3d 47 | 65 74 53 63 72 65 65 6e |.}...i=G|etScreen|
|00000e70| 49 6e 64 65 78 28 64 65 | 76 69 63 65 29 3b 0d 09 |Index(de|vice);..|
|00000e80| 09 69 66 28 69 3e 3d 4d | 41 58 5f 53 43 52 45 45 |.if(i>=M|AX_SCREE|
|00000e90| 4e 53 29 72 65 74 75 72 | 6e 3b 0d 09 7d 0d 09 69 |NS)retur|n;..}..i|
|00000ea0| 66 28 63 6f 72 6e 65 72 | 52 67 6e 5b 69 5d 21 3d |f(corner|Rgn[i]!=|
|00000eb0| 4e 55 4c 4c 29 7b 0d 2f | 2f 09 09 43 6f 70 79 51 |NULL){./|/..CopyQ|
|00000ec0| 75 69 63 6b 44 72 61 77 | 47 6c 6f 62 61 6c 73 28 |uickDraw|Globals(|
|00000ed0| 29 3b 09 09 09 2f 2f 20 | 4d 61 6b 65 20 73 75 72 |);...// |Make sur|
|00000ee0| 65 20 71 64 20 69 73 20 | 76 61 6c 69 64 2e 0d 2f |e qd is |valid../|
|00000ef0| 2f 09 09 46 69 6c 6c 52 | 67 6e 28 63 6f 72 6e 65 |/..FillR|gn(corne|
|00000f00| 72 52 67 6e 5b 69 5d 2c | 28 43 6f 6e 73 74 50 61 |rRgn[i],|(ConstPa|
|00000f10| 74 74 65 72 6e 50 61 72 | 61 6d 29 26 71 64 2e 62 |tternPar|am)&qd.b|
|00000f20| 6c 61 63 6b 29 3b 09 2f | 2f 20 64 6f 6e 27 74 20 |lack);./|/ don't |
|00000f30| 6b 6e 6f 77 20 77 68 61 | 74 20 70 6f 72 74 20 69 |know wha|t port i|
|00000f40| 74 20 62 65 6c 6f 6e 67 | 73 20 74 6f 0d 09 09 44 |t belong|s to...D|
|00000f50| 69 66 66 52 67 6e 28 47 | 65 74 47 72 61 79 52 67 |iffRgn(G|etGrayRg|
|00000f60| 6e 28 29 2c 63 6f 72 6e | 65 72 52 67 6e 5b 69 5d |n(),corn|erRgn[i]|
|00000f70| 2c 47 65 74 47 72 61 79 | 52 67 6e 28 29 29 3b 0d |,GetGray|Rgn());.|
|00000f80| 09 09 44 69 73 70 6f 73 | 65 52 67 6e 28 63 6f 72 |..Dispos|eRgn(cor|
|00000f90| 6e 65 72 52 67 6e 5b 69 | 5d 29 3b 0d 09 09 63 6f |nerRgn[i|]);...co|
|00000fa0| 72 6e 65 72 52 67 6e 5b | 69 5d 3d 4e 55 4c 4c 3b |rnerRgn[|i]=NULL;|
|00000fb0| 0d 09 7d 0d 7d 0d 0d 76 | 6f 69 64 20 55 6e 63 6c |..}.}..v|oid Uncl|
|00000fc0| 69 70 53 63 72 65 65 6e | 28 47 44 48 61 6e 64 6c |ipScreen|(GDHandl|
|00000fd0| 65 20 64 65 76 69 63 65 | 29 0d 7b 0d 09 6c 6f 6e |e device|).{..lon|
|00000fe0| 67 20 71 75 69 63 6b 44 | 72 61 77 3b 0d 0d 09 47 |g quickD|raw;...G|
|00000ff0| 65 73 74 61 6c 74 28 67 | 65 73 74 61 6c 74 51 75 |estalt(g|estaltQu|
|00001000| 69 63 6b 64 72 61 77 56 | 65 72 73 69 6f 6e 2c 26 |ickdrawV|ersion,&|
|00001010| 71 75 69 63 6b 44 72 61 | 77 29 3b 0d 09 69 66 28 |quickDra|w);..if(|
|00001020| 71 75 69 63 6b 44 72 61 | 77 3c 67 65 73 74 61 6c |quickDra|w<gestal|
|00001030| 74 38 42 69 74 51 44 20 | 7c 7c 20 64 65 76 69 63 |t8BitQD ||| devic|
|00001040| 65 3d 3d 47 65 74 4d 61 | 69 6e 44 65 76 69 63 65 |e==GetMa|inDevice|
|00001050| 28 29 29 48 69 64 65 4d | 65 6e 75 42 61 72 28 29 |())HideM|enuBar()|
|00001060| 3b 0d 09 53 71 75 61 72 | 65 43 6f 72 6e 65 72 73 |;..Squar|eCorners|
|00001070| 28 64 65 76 69 63 65 29 | 3b 0d 7d 0d 0d 76 6f 69 |(device)|;.}..voi|
|00001080| 64 20 52 65 73 74 6f 72 | 65 53 63 72 65 65 6e 43 |d Restor|eScreenC|
|00001090| 6c 69 70 70 69 6e 67 28 | 47 44 48 61 6e 64 6c 65 |lipping(|GDHandle|
|000010a0| 20 64 65 76 69 63 65 29 | 0d 7b 0d 09 6c 6f 6e 67 | device)|.{..long|
|000010b0| 20 71 75 69 63 6b 44 72 | 61 77 3b 0d 0d 09 52 65 | quickDr|aw;...Re|
|000010c0| 73 74 6f 72 65 43 6f 72 | 6e 65 72 73 28 64 65 76 |storeCor|ners(dev|
|000010d0| 69 63 65 29 3b 0d 09 47 | 65 73 74 61 6c 74 28 67 |ice);..G|estalt(g|
|000010e0| 65 73 74 61 6c 74 51 75 | 69 63 6b 64 72 61 77 56 |estaltQu|ickdrawV|
|000010f0| 65 72 73 69 6f 6e 2c 26 | 71 75 69 63 6b 44 72 61 |ersion,&|quickDra|
|00001100| 77 29 3b 0d 09 69 66 28 | 71 75 69 63 6b 44 72 61 |w);..if(|quickDra|
|00001110| 77 3c 67 65 73 74 61 6c | 74 38 42 69 74 51 44 20 |w<gestal|t8BitQD |
|00001120| 7c 7c 20 64 65 76 69 63 | 65 3d 3d 47 65 74 4d 61 ||| devic|e==GetMa|
|00001130| 69 6e 44 65 76 69 63 65 | 28 29 29 53 68 6f 77 4d |inDevice|())ShowM|
|00001140| 65 6e 75 42 61 72 28 29 | 3b 0d 7d 00 00 00 00 00 |enuBar()|;.}.....|
|00001150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001180| 00 00 01 00 00 00 02 06 | 00 00 01 06 00 00 00 5e |........|.......^|
|00001190| 09 09 09 09 2f 2a 20 44 | 6f 20 6e 6f 74 68 69 6e |..../* D|o nothin|
|000011a0| 67 20 69 66 20 74 68 65 | 20 6d 65 6e 75 20 62 61 |g if the| menu ba|
|000011b0| 0d 48 69 64 65 4d 65 6e | 75 42 61 72 2e 63 02 00 |.HideMen|uBar.c..|
|000011c0| 00 00 54 45 58 54 43 57 | 49 45 01 00 00 64 02 40 |..TEXTCW|IE...d.@|
|000011d0| 00 00 54 45 58 54 43 57 | 49 45 01 00 00 64 02 40 |..TEXTCW|IE...d.@|
|000011e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000011f0| 00 00 a3 f1 fd 59 00 00 | 10 cb 00 00 02 64 72 20 |.....Y..|.....dr |
|00001200| 68 65 69 67 68 74 09 09 | 2a 2f 0d 09 09 43 6f 70 |height..|*/...Cop|
|00001210| 79 52 67 6e 28 73 61 76 | 65 47 72 61 79 52 67 6e |yRgn(sav|eGrayRgn|
|00001220| 2c 20 47 65 74 47 72 61 | 79 52 67 6e 28 29 29 3b |, GetGra|yRgn());|
|00001230| 09 2f 2a 20 52 65 73 74 | 6f 72 65 20 74 68 65 20 |./* Rest|ore the |
|00001240| 73 61 76 65 20 47 72 61 | 79 52 67 6e 09 09 09 09 |save Gra|yRgn....|
|00001250| 09 2a 2f 0d 09 09 0d 09 | 09 44 69 73 70 6f 73 65 |.*/.....|.Dispose|
|00001260| 52 67 6e 28 73 61 76 65 | 47 72 61 79 52 67 6e 29 |Rgn(save|GrayRgn)|
|00001270| 3b 09 09 09 2f 2a 20 4e | 6f 20 6c 6f 6e 67 65 72 |;.../* N|o longer|
|00001280| 00 00 00 1e 00 64 00 1c | 01 8d 02 3d 00 64 00 1c |.....d..|...=.d..|
|00001290| 01 8d 02 3d 00 00 0c 9f | 00 00 00 00 00 00 00 00 |...=....|........|
|000012a0| 00 00 00 00 00 8c 00 06 | 00 00 05 2e 00 00 05 39 |........|.......9|
|000012b0| 0b 48 69 64 65 4d 65 6e | 75 42 61 72 00 00 0b 50 |.HideMen|uBar...P|
|000012c0| 00 00 0b 5e 0f 52 65 73 | 74 6f 72 65 43 6f 72 6e |...^.Res|toreCorn|
|000012d0| 65 72 73 00 00 00 0e c2 | 00 00 0e d7 15 52 65 73 |ers.....|.....Res|
|000012e0| 74 6f 72 65 53 63 72 65 | 65 6e 43 6c 69 70 70 69 |toreScre|enClippi|
|000012f0| 6e 67 00 00 06 ae 00 00 | 06 b9 0b 53 68 6f 77 4d |ng......|...ShowM|
|00001300| 65 6e 75 42 61 72 00 00 | 07 a8 00 00 07 b5 0d 53 |enuBar..|.......S|
|00001310| 71 75 61 72 65 43 6f 72 | 6e 65 72 73 00 00 0d fc |quareCor|ners....|
|00001320| 00 00 0e 08 0d 55 6e 63 | 6c 69 70 53 63 72 65 65 |.....Unc|lipScree|
|00001330| 6e 00 00 00 00 48 00 09 | 4d 6f 6e 61 63 6f 00 00 |n....H..|Monaco..|
|00001340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001350| 00 00 00 00 00 00 00 00 | 00 03 00 04 00 57 00 b7 |........|.....W..|
|00001360| 01 a0 02 66 00 57 00 b7 | 01 a0 02 66 ad bd 70 7d |...f.W..|...f..p}|
|00001370| 00 00 06 2b 00 00 06 42 | 00 00 06 6b 00 00 00 00 |...+...B|...k....|
|00001380| 00 04 00 01 00 01 00 00 | 01 00 00 00 02 06 00 00 |........|........|
|00001390| 01 06 00 00 00 5e 01 21 | e1 c4 37 16 00 00 00 1c |.....^.!|..7.....|
|000013a0| 00 5e 00 01 4d 50 53 52 | 00 02 00 12 4d 57 42 42 |.^..MPSR|....MWBB|
|000013b0| 00 00 00 36 03 f0 ff ff | 00 00 00 00 00 00 00 00 |...6....|........|
|000013c0| 03 ef ff ff 00 00 00 22 | 00 00 00 00 03 ed ff ff |......."|........|
|000013d0| 00 00 00 b2 00 00 00 00 | 03 f0 ff ff 00 00 00 fe |........|........|
|000013e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000013f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+