home *** CD-ROM | disk | FTP | other *** search
/ Enigma Amiga Life 109 / EnigmaAmiga109CD.iso / dalla rivista / amiga.free / sorgenti vari / wolf3dmacsource.sit / Wolf3DMacSource / HideMenuBar.c < prev    next >
MacBinary  |  2000-01-21  |  3.6 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

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, Fri Jan 21 09:00:59 2000, modified Fri Jan 21 09:00:59 2000, creator 'CWIE', type ASCII, 3070 bytes "HideMenuBar.c" , at 0xc7e 442 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
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 0b fe 00 | 00 01 ba b4 ae 17 1b b4 |........|........|
|00000060| ae 17 1b 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 90 42 00 00 |........|.....B..|
|00000080| 23 69 6e 63 6c 75 64 65 | 20 22 68 69 64 65 6d 65 |#include| "hideme|
|00000090| 6e 75 62 61 72 2e 68 22 | 0d 09 09 09 09 09 09 09 |nubar.h"|........|
|000000a0| 09 09 09 09 0d 73 74 61 | 74 69 63 20 42 6f 6f 6c |.....sta|tic Bool|
|000000b0| 65 61 6e 20 4d 65 6e 75 | 42 61 72 48 69 64 64 65 |ean Menu|BarHidde|
|000000c0| 6e 20 3d 20 46 41 4c 53 | 45 3b 09 09 2f 2a 20 43 |n = FALS|E;../* C|
|000000d0| 75 72 72 65 6e 74 20 73 | 74 61 74 65 20 6f 66 20 |urrent s|tate of |
|000000e0| 74 68 65 20 6d 65 6e 75 | 20 62 61 72 2e 20 2a 2f |the menu| bar. */|
|000000f0| 0d 73 74 61 74 69 63 20 | 52 65 63 74 20 4f 6c 64 |.static |Rect Old|
|00000100| 65 4d 42 61 72 52 65 63 | 74 3b 09 09 2f 2a 20 53 |eMBarRec|t;../* S|
|00000110| 61 76 65 73 20 72 65 63 | 74 61 6e 67 6c 65 20 65 |aves rec|tangle e|
|00000120| 6e 63 6c 6f 73 69 6e 67 | 20 72 65 61 6c 20 6d 65 |nclosing| real me|
|00000130| 6e 75 20 62 61 72 2e 20 | 2a 2f 0d 73 74 61 74 69 |nu bar. |*/.stati|
|00000140| 63 20 52 67 6e 48 61 6e | 64 6c 65 20 4f 6c 64 65 |c RgnHan|dle Olde|
|00000150| 47 72 61 79 52 67 6e 3b | 09 2f 2a 20 53 61 76 65 |GrayRgn;|./* Save|
|00000160| 73 20 74 68 65 20 72 65 | 67 69 6f 6e 20 64 65 66 |s the re|gion def|
|00000170| 69 6e 69 6e 67 20 74 68 | 65 20 64 65 73 6b 74 6f |ining th|e deskto|
|00000180| 70 20 2a 2f 0d 73 74 61 | 74 69 63 20 73 68 6f 72 |p */.sta|tic shor|
|00000190| 74 20 4f 6c 64 4d 42 61 | 72 48 65 69 67 68 74 3b |t OldMBa|rHeight;|
|000001a0| 09 09 2f 2a 20 50 72 65 | 76 69 6f 75 73 20 6d 65 |../* Pre|vious me|
|000001b0| 6e 75 20 62 61 72 20 68 | 65 69 67 68 74 20 2a 2f |nu bar h|eight */|
|000001c0| 0d 65 78 74 65 72 6e 20 | 47 44 48 61 6e 64 6c 65 |.extern |GDHandle|
|000001d0| 20 67 4d 61 69 6e 47 44 | 48 3b 0d 0d 2f 2a 2a 2a | gMainGD|H;../***|
|000001e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000001f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 0d 0d 09 |********|*****...|
|00000200| 48 69 64 65 20 74 68 65 | 20 6d 65 6e 75 20 62 61 |Hide the| menu ba|
|00000210| 72 20 28 49 66 20 76 69 | 73 69 62 6c 65 29 0d 0d |r (If vi|sible)..|
|00000220| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000230| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000240| 2f 0d 0d 76 6f 69 64 20 | 48 69 64 65 4d 65 6e 75 |/..void |HideMenu|
|00000250| 42 61 72 28 76 6f 69 64 | 29 0d 7b 0d 09 52 67 6e |Bar(void|).{..Rgn|
|00000260| 48 61 6e 64 6c 65 20 6d | 65 6e 75 52 67 6e 3b 0d |Handle m|enuRgn;.|
|00000270| 09 57 69 6e 64 6f 77 50 | 65 65 6b 20 74 68 65 57 |.WindowP|eek theW|
|00000280| 69 6e 64 6f 77 3b 0d 09 | 47 44 48 61 6e 64 6c 65 |indow;..|GDHandle|
|00000290| 20 54 65 6d 70 48 61 6e | 64 3b 0d 09 0d 09 54 65 | TempHan|d;....Te|
|000002a0| 6d 70 48 61 6e 64 20 3d | 20 47 65 74 4d 61 69 6e |mpHand =| GetMain|
|000002b0| 44 65 76 69 63 65 28 29 | 3b 0d 09 69 66 20 28 54 |Device()|;..if (T|
|000002c0| 65 6d 70 48 61 6e 64 21 | 3d 67 4d 61 69 6e 47 44 |empHand!|=gMainGD|
|000002d0| 48 29 20 7b 09 2f 2a 20 | 4d 61 69 6e 20 67 72 61 |H) {./* |Main gra|
|000002e0| 70 68 69 63 73 20 68 61 | 6e 64 6c 65 20 2a 2f 0d |phics ha|ndle */.|
|000002f0| 09 09 72 65 74 75 72 6e | 3b 0d 09 7d 09 09 09 09 |..return|;..}....|
|00000300| 0d 09 69 66 20 28 21 4d | 65 6e 75 42 61 72 48 69 |..if (!M|enuBarHi|
|00000310| 64 64 65 6e 29 20 7b 09 | 09 2f 2a 20 41 6c 72 65 |dden) {.|./* Alre|
|00000320| 61 64 79 20 68 69 64 64 | 65 6e 3f 20 2a 2f 0d 09 |ady hidd|en? */..|
|00000330| 09 4f 6c 64 4d 42 61 72 | 48 65 69 67 68 74 20 3d |.OldMBar|Height =|
|00000340| 20 4c 4d 47 65 74 4d 42 | 61 72 48 65 69 67 68 74 | LMGetMB|arHeight|
|00000350| 28 29 3b 09 2f 2a 20 47 | 65 74 20 74 68 65 20 68 |();./* G|et the h|
|00000360| 65 69 67 68 74 20 69 6e | 20 70 69 78 65 6c 73 20 |eight in| pixels |
|00000370| 2a 2f 0d 09 09 4f 6c 64 | 65 47 72 61 79 52 67 6e |*/...Old|eGrayRgn|
|00000380| 20 3d 20 4e 65 77 52 67 | 6e 28 29 3b 09 09 2f 2a | = NewRg|n();../*|
|00000390| 20 4d 61 6b 65 20 61 20 | 6e 65 77 20 72 65 67 69 | Make a |new regi|
|000003a0| 6f 6e 20 2a 2f 0d 09 09 | 43 6f 70 79 52 67 6e 28 |on */...|CopyRgn(|
|000003b0| 47 65 74 47 72 61 79 52 | 67 6e 28 29 2c 20 4f 6c |GetGrayR|gn(), Ol|
|000003c0| 64 65 47 72 61 79 52 67 | 6e 29 3b 09 2f 2a 20 43 |deGrayRg|n);./* C|
|000003d0| 6f 70 79 20 74 68 65 20 | 62 61 63 6b 67 72 6f 75 |opy the |backgrou|
|000003e0| 6e 64 20 72 65 67 69 6f | 6e 20 2a 2f 0d 09 09 4f |nd regio|n */...O|
|000003f0| 6c 64 65 4d 42 61 72 52 | 65 63 74 20 3d 20 71 64 |ldeMBarR|ect = qd|
|00000400| 2e 73 63 72 65 65 6e 42 | 69 74 73 2e 62 6f 75 6e |.screenB|its.boun|
|00000410| 64 73 3b 09 2f 2a 20 4d | 61 6b 65 20 61 20 72 65 |ds;./* M|ake a re|
|00000420| 67 69 6f 6e 20 66 72 6f | 6d 20 74 68 65 20 72 65 |gion fro|m the re|
|00000430| 63 74 20 6f 72 20 74 68 | 65 20 6d 6f 6e 69 74 6f |ct or th|e monito|
|00000440| 72 20 77 69 64 74 68 20 | 2a 2f 0d 09 09 4f 6c 64 |r width |*/...Old|
|00000450| 65 4d 42 61 72 52 65 63 | 74 2e 62 6f 74 74 6f 6d |eMBarRec|t.bottom|
|00000460| 20 3d 20 4f 6c 64 65 4d | 42 61 72 52 65 63 74 2e | = OldeM|BarRect.|
|00000470| 74 6f 70 20 2b 20 4f 6c | 64 4d 42 61 72 48 65 69 |top + Ol|dMBarHei|
|00000480| 67 68 74 3b 09 2f 2a 20 | 54 6f 70 20 74 6f 20 62 |ght;./* |Top to b|
|00000490| 6f 74 74 6f 6d 20 6f 66 | 20 6d 65 6e 75 20 2a 2f |ottom of| menu */|
|000004a0| 0d 09 09 6d 65 6e 75 52 | 67 6e 20 3d 20 4e 65 77 |...menuR|gn = New|
|000004b0| 52 67 6e 28 29 3b 09 09 | 09 2f 2a 20 43 6f 6e 76 |Rgn();..|./* Conv|
|000004c0| 65 72 74 20 74 6f 20 72 | 65 67 69 6f 6e 20 2a 2f |ert to r|egion */|
|000004d0| 0d 09 09 52 65 63 74 52 | 67 6e 28 6d 65 6e 75 52 |...RectR|gn(menuR|
|000004e0| 67 6e 2c 20 26 4f 6c 64 | 65 4d 42 61 72 52 65 63 |gn, &Old|eMBarRec|
|000004f0| 74 29 3b 0d 09 09 0d 09 | 09 55 6e 69 6f 6e 52 67 |t);.....|.UnionRg|
|00000500| 6e 28 47 65 74 47 72 61 | 79 52 67 6e 28 29 2c 20 |n(GetGra|yRgn(), |
|00000510| 6d 65 6e 75 52 67 6e 2c | 20 47 65 74 47 72 61 79 |menuRgn,| GetGray|
|00000520| 52 67 6e 28 29 29 3b 09 | 2f 2a 20 41 64 64 20 74 |Rgn());.|/* Add t|
|00000530| 68 65 20 6d 65 6e 75 20 | 61 72 65 61 20 74 6f 20 |he menu |area to |
|00000540| 62 61 63 6b 67 72 6f 75 | 6e 64 20 2a 2f 0d 09 09 |backgrou|nd */...|
|00000550| 74 68 65 57 69 6e 64 6f | 77 20 3d 20 28 57 69 6e |theWindo|w = (Win|
|00000560| 64 6f 77 50 65 65 6b 29 | 46 72 6f 6e 74 57 69 6e |dowPeek)|FrontWin|
|00000570| 64 6f 77 28 29 3b 0d 09 | 09 50 61 69 6e 74 4f 6e |dow();..|.PaintOn|
|00000580| 65 28 28 57 69 6e 64 6f | 77 50 74 72 29 74 68 65 |e((Windo|wPtr)the|
|00000590| 57 69 6e 64 6f 77 2c 20 | 6d 65 6e 75 52 67 6e 29 |Window, |menuRgn)|
|000005a0| 3b 09 09 09 2f 2a 20 52 | 65 64 72 61 77 20 74 68 |;.../* R|edraw th|
|000005b0| 65 20 66 72 6f 6e 74 20 | 77 69 6e 64 6f 77 20 2a |e front |window *|
|000005c0| 2f 0d 09 09 50 61 69 6e | 74 42 65 68 69 6e 64 28 |/...Pain|tBehind(|
|000005d0| 28 57 69 6e 64 6f 77 50 | 74 72 29 74 68 65 57 69 |(WindowP|tr)theWi|
|000005e0| 6e 64 6f 77 2c 20 6d 65 | 6e 75 52 67 6e 29 3b 09 |ndow, me|nuRgn);.|
|000005f0| 09 2f 2a 20 52 65 64 72 | 61 77 20 61 6c 6c 20 6f |./* Redr|aw all o|
|00000600| 74 68 65 72 20 77 69 6e | 64 6f 77 73 20 2a 2f 0d |ther win|dows */.|
|00000610| 09 09 43 61 6c 63 56 69 | 73 28 28 57 69 6e 64 6f |..CalcVi|s((Windo|
|00000620| 77 50 74 72 29 74 68 65 | 57 69 6e 64 6f 77 29 3b |wPtr)the|Window);|
|00000630| 09 09 09 09 09 09 2f 2a | 20 52 65 73 69 7a 65 20 |....../*| Resize |
|00000640| 74 68 65 20 76 69 73 69 | 62 6c 65 20 72 65 67 69 |the visi|ble regi|
|00000650| 6f 6e 20 2a 2f 0d 09 09 | 43 61 6c 63 56 69 73 42 |on */...|CalcVisB|
|00000660| 65 68 69 6e 64 28 28 57 | 69 6e 64 6f 77 50 74 72 |ehind((W|indowPtr|
|00000670| 29 74 68 65 57 69 6e 64 | 6f 77 2c 20 6d 65 6e 75 |)theWind|ow, menu|
|00000680| 52 67 6e 29 3b 09 09 2f | 2a 20 52 65 73 69 7a 65 |Rgn);../|* Resize|
|00000690| 20 74 68 65 20 76 69 73 | 69 62 6c 65 20 72 65 67 | the vis|ible reg|
|000006a0| 69 6f 6e 73 20 66 6f 72 | 20 61 6c 6c 20 6f 74 68 |ions for| all oth|
|000006b0| 65 72 73 20 2a 2f 0d 09 | 09 44 69 73 70 6f 73 65 |ers */..|.Dispose|
|000006c0| 52 67 6e 28 6d 65 6e 75 | 52 67 6e 29 3b 09 09 09 |Rgn(menu|Rgn);...|
|000006d0| 09 2f 2a 20 52 65 6c 65 | 61 73 65 20 74 68 65 20 |./* Rele|ase the |
|000006e0| 6d 65 6e 75 20 72 65 67 | 69 6f 6e 20 2a 2f 0d 09 |menu reg|ion */..|
|000006f0| 09 4d 65 6e 75 42 61 72 | 48 69 64 64 65 6e 20 3d |.MenuBar|Hidden =|
|00000700| 20 54 52 55 45 3b 09 09 | 09 09 2f 2a 20 49 74 20 | TRUE;..|../* It |
|00000710| 69 73 20 6e 6f 77 20 68 | 69 64 64 65 6e 20 2a 2f |is now h|idden */|
|00000720| 0d 09 09 5a 61 70 4d 48 | 65 69 67 68 74 28 29 3b |...ZapMH|eight();|
|00000730| 09 09 09 09 09 09 2f 2a | 20 5a 61 70 20 74 68 65 |....../*| Zap the|
|00000740| 20 68 65 69 67 68 74 20 | 2a 2f 0d 09 7d 0d 7d 0d | height |*/..}.}.|
|00000750| 0d 2f 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |./******|********|
|00000760| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000770| 2a 2a 0d 0d 09 53 68 6f | 77 20 74 68 65 20 6d 65 |**...Sho|w the me|
|00000780| 6e 75 20 62 61 72 20 28 | 49 66 20 68 69 64 64 65 |nu bar (|If hidde|
|00000790| 6e 29 0d 0d 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |n)..****|********|
|000007a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000007b0| 2a 2a 2a 2a 2f 0d 0d 76 | 6f 69 64 20 53 68 6f 77 |****/..v|oid Show|
|000007c0| 4d 65 6e 75 42 61 72 28 | 76 6f 69 64 29 0d 7b 0d |MenuBar(|void).{.|
|000007d0| 09 57 69 6e 64 6f 77 50 | 65 65 6b 20 74 68 65 57 |.WindowP|eek theW|
|000007e0| 69 6e 64 6f 77 3b 0d 09 | 0d 09 69 66 20 28 4d 65 |indow;..|..if (Me|
|000007f0| 6e 75 42 61 72 48 69 64 | 64 65 6e 29 20 7b 09 09 |nuBarHid|den) {..|
|00000800| 2f 2a 20 48 69 64 64 65 | 6e 3f 20 2a 2f 0d 09 09 |/* Hidde|n? */...|
|00000810| 46 69 78 4d 48 65 69 67 | 68 74 28 29 3b 0d 09 09 |FixMHeig|ht();...|
|00000820| 4d 65 6e 75 42 61 72 48 | 69 64 64 65 6e 20 3d 20 |MenuBarH|idden = |
|00000830| 46 41 4c 53 45 3b 09 09 | 2f 2a 20 54 68 65 20 62 |FALSE;..|/* The b|
|00000840| 61 72 20 69 73 20 68 65 | 72 65 20 2a 2f 0d 09 09 |ar is he|re */...|
|00000850| 43 6f 70 79 52 67 6e 28 | 4f 6c 64 65 47 72 61 79 |CopyRgn(|OldeGray|
|00000860| 52 67 6e 2c 20 47 65 74 | 47 72 61 79 52 67 6e 28 |Rgn, Get|GrayRgn(|
|00000870| 29 29 3b 09 2f 2a 20 47 | 65 74 20 74 68 65 20 72 |));./* G|et the r|
|00000880| 65 67 69 6f 6e 20 2a 2f | 0d 09 09 52 65 63 74 52 |egion */|...RectR|
|00000890| 67 6e 28 4f 6c 64 65 47 | 72 61 79 52 67 6e 2c 20 |gn(OldeG|rayRgn, |
|000008a0| 26 4f 6c 64 65 4d 42 61 | 72 52 65 63 74 29 3b 09 |&OldeMBa|rRect);.|
|000008b0| 2f 2a 20 43 6f 6e 76 65 | 72 74 20 6d 65 6e 75 20 |/* Conve|rt menu |
|000008c0| 72 65 63 74 20 74 6f 20 | 72 65 67 69 6f 6e 20 2a |rect to |region *|
|000008d0| 2f 0d 09 09 74 68 65 57 | 69 6e 64 6f 77 20 3d 20 |/...theW|indow = |
|000008e0| 28 57 69 6e 64 6f 77 50 | 65 65 6b 29 46 72 6f 6e |(WindowP|eek)Fron|
|000008f0| 74 57 69 6e 64 6f 77 28 | 29 3b 09 2f 2a 20 47 65 |tWindow(|);./* Ge|
|00000900| 74 20 74 68 65 20 66 72 | 6f 6e 74 20 77 69 6e 64 |t the fr|ont wind|
|00000910| 6f 77 20 2a 2f 0d 09 09 | 43 61 6c 63 56 69 73 28 |ow */...|CalcVis(|
|00000920| 28 57 69 6e 64 6f 77 50 | 74 72 29 74 68 65 57 69 |(WindowP|tr)theWi|
|00000930| 6e 64 6f 77 29 3b 09 09 | 09 09 2f 2a 20 52 65 73 |ndow);..|../* Res|
|00000940| 65 74 20 74 68 65 20 76 | 69 73 69 62 6c 65 20 72 |et the v|isible r|
|00000950| 65 67 69 6f 6e 20 2a 2f | 0d 09 09 43 61 6c 63 56 |egion */|...CalcV|
|00000960| 69 73 42 65 68 69 6e 64 | 28 28 57 69 6e 64 6f 77 |isBehind|((Window|
|00000970| 50 74 72 29 74 68 65 57 | 69 6e 64 6f 77 2c 4f 6c |Ptr)theW|indow,Ol|
|00000980| 64 65 47 72 61 79 52 67 | 6e 29 3b 09 2f 2a 20 52 |deGrayRg|n);./* R|
|00000990| 65 6d 6f 76 65 20 74 68 | 65 20 6d 65 6e 75 20 62 |emove th|e menu b|
|000009a0| 61 72 20 66 72 6f 6d 20 | 77 69 6e 64 6f 77 73 20 |ar from |windows |
|000009b0| 2a 2f 0d 09 09 44 69 73 | 70 6f 73 65 52 67 6e 28 |*/...Dis|poseRgn(|
|000009c0| 4f 6c 64 65 47 72 61 79 | 52 67 6e 29 3b 09 09 2f |OldeGray|Rgn);../|
|000009d0| 2a 20 42 79 65 20 62 79 | 65 20 72 65 67 69 6f 6e |* Bye by|e region|
|000009e0| 20 2a 2f 0d 09 09 4f 6c | 64 65 47 72 61 79 52 67 | */...Ol|deGrayRg|
|000009f0| 6e 20 3d 20 30 3b 09 09 | 09 2f 2a 20 5a 61 70 20 |n = 0;..|./* Zap |
|00000a00| 74 68 65 20 68 61 6e 64 | 6c 65 20 2a 2f 0d 09 09 |the hand|le */...|
|00000a10| 48 69 6c 69 74 65 4d 65 | 6e 75 28 30 29 3b 09 09 |HiliteMe|nu(0);..|
|00000a20| 09 09 2f 2a 20 44 6f 6e | 27 74 20 68 69 6c 69 74 |../* Don|'t hilit|
|00000a30| 65 20 61 6e 79 20 6d 65 | 6e 75 20 6f 70 74 69 6f |e any me|nu optio|
|00000a40| 6e 73 20 2a 2f 0d 09 09 | 44 72 61 77 4d 65 6e 75 |ns */...|DrawMenu|
|00000a50| 42 61 72 28 29 3b 09 09 | 09 09 2f 2a 20 52 65 64 |Bar();..|../* Red|
|00000a60| 72 61 77 20 74 68 65 20 | 6d 65 6e 75 20 62 61 72 |raw the |menu bar|
|00000a70| 20 2a 2f 0d 09 7d 0d 7d | 0d 0d 2f 2a 2a 2a 2a 2a | */..}.}|../*****|
|00000a80| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000a90| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 0d 0d 09 52 65 |********|***...Re|
|00000aa0| 73 74 6f 72 65 20 74 68 | 65 20 6d 65 6e 75 20 62 |store th|e menu b|
|00000ab0| 61 72 20 68 65 69 67 68 | 74 20 73 6f 20 74 68 61 |ar heigh|t so tha|
|00000ac0| 74 0d 09 74 68 65 20 4f | 53 20 63 61 6e 20 68 61 |t..the O|S can ha|
|00000ad0| 6e 64 6c 65 20 6d 65 6e | 75 20 62 61 72 20 65 76 |ndle men|u bar ev|
|00000ae0| 65 6e 74 73 0d 0d 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |ents..**|********|
|00000af0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000b00| 2a 2a 2a 2a 2a 2a 2f 0d | 0d 76 6f 69 64 20 46 69 |******/.|.void Fi|
|00000b10| 78 4d 48 65 69 67 68 74 | 28 76 6f 69 64 29 0d 7b |xMHeight|(void).{|
|00000b20| 0d 09 69 66 20 28 4d 65 | 6e 75 42 61 72 48 69 64 |..if (Me|nuBarHid|
|00000b30| 64 65 6e 29 20 7b 09 09 | 2f 2a 20 48 69 64 64 65 |den) {..|/* Hidde|
|00000b40| 6e 3f 20 2a 2f 0d 09 09 | 4c 4d 53 65 74 4d 42 61 |n? */...|LMSetMBa|
|00000b50| 72 48 65 69 67 68 74 28 | 4f 6c 64 4d 42 61 72 48 |rHeight(|OldMBarH|
|00000b60| 65 69 67 68 74 29 3b 09 | 09 2f 2a 20 52 65 73 65 |eight);.|./* Rese|
|00000b70| 74 20 74 68 65 20 68 65 | 69 67 68 74 20 2a 2f 0d |t the he|ight */.|
|00000b80| 09 7d 0d 7d 0d 0d 2f 2a | 2a 2a 2a 2a 2a 2a 2a 2a |.}.}../*|********|
|00000b90| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000ba0| 2a 2a 2a 2a 2a 2a 2a 0d | 0d 09 5a 61 70 20 74 68 |*******.|..Zap th|
|00000bb0| 65 20 6d 65 6e 75 20 62 | 61 72 20 68 65 69 67 68 |e menu b|ar heigh|
|00000bc0| 74 20 73 6f 20 74 68 61 | 74 20 74 68 69 6e 67 73 |t so tha|t things|
|00000bd0| 0d 09 6c 69 6b 65 20 4d | 65 6e 75 43 6c 6f 63 6b |..like M|enuClock|
|00000be0| 20 77 6f 6e 27 74 20 64 | 72 61 77 0d 0d 2a 2a 2a | won't d|raw..***|
|00000bf0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000c00| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2f 0d 0d |********|*****/..|
|00000c10| 76 6f 69 64 20 5a 61 70 | 4d 48 65 69 67 68 74 28 |void Zap|MHeight(|
|00000c20| 76 6f 69 64 29 0d 7b 0d | 09 69 66 20 28 4d 65 6e |void).{.|.if (Men|
|00000c30| 75 42 61 72 48 69 64 64 | 65 6e 29 20 7b 09 09 2f |uBarHidd|en) {../|
|00000c40| 2a 20 48 69 64 64 65 6e | 3f 20 2a 2f 0d 09 09 4c |* Hidden|? */...L|
|00000c50| 4d 53 65 74 4d 42 61 72 | 48 65 69 67 68 74 28 30 |MSetMBar|Height(0|
|00000c60| 29 3b 09 09 2f 2a 20 5a | 61 70 20 74 68 65 20 68 |);../* Z|ap the h|
|00000c70| 65 69 67 68 74 20 2a 2f | 0d 09 7d 0d 7d 0d 00 00 |eight */|..}.}...|
|00000c80| 00 00 01 00 00 00 01 60 | 00 00 00 60 00 00 00 5a |.......`|...`...Z|
|00000c90| 7a fa aa 22 4c 93 d4 e5 | 81 d9 c1 d3 d4 4e 75 28 |z.."L...|.....Nu(|
|00000ca0| 7a fa 92 c2 fc 00 40 22 | 34 18 18 28 7a fa 9a d2 |z.....@"|4..(z...|
|00000cb0| 0d 48 69 64 65 4d 65 6e | 75 42 61 72 2e 63 02 00 |.HideMen|uBar.c..|
|00000cc0| 00 00 54 45 58 54 70 64 | 6f 73 01 00 00 34 01 00 |..TEXTpd|os...4..|
|00000cd0| 00 00 54 45 58 54 70 64 | 6f 73 01 00 00 34 01 00 |..TEXTpd|os...4..|
|00000ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cf0| 00 00 a7 29 96 0f 00 00 | 0b bc 00 00 01 9e 04 4e |...)....|.......N|
|00000d00| ba ff d6 d2 a9 00 0e 4e | 75 20 5f 32 18 34 18 b0 |.......N|u _2.4..|
|00000d10| 58 57 c9 ff fa 4a 42 67 | fe 4e f0 20 fc 20 5f 32 |XW...JBg|.N. . _2|
|00000d20| 18 34 18 b0 98 57 c9 ff | fa 4a 42 67 fe 4e f0 20 |.4...W..|.JBg.N. |
|00000d30| fa 20 5f 32 18 34 18 b0 | 42 6e 0a 90 41 6d 06 d0 |. _2.4..|Bn..Am..|
|00000d40| 40 41 f0 00 02 30 10 67 | fe 4e f0 00 00 20 2f 00 |@A...0.g|.N... /.|
|00000d50| 04 2f 41 00 04 22 2f 00 | 08 2f 5f 00 04 48 e7 3c |./A.."/.|./_..H.<|
|00000d60| 00 24 00 26 01 48 42 c4 | c3 28 00 2a 01 48 45 c8 |.$.&.HB.|.(.*.HE.|
|00000d70| c5 d4 44 48 42 42 42 c0 | c1 d0 82 4c df 00 3c 22 |..DHBBB.|...L..<"|
|00000d80| 00 00 00 08 00 60 00 0c | 01 d6 02 40 00 00 00 48 |.....`..|...@...H|
|00000d90| 00 09 4d 6f 6e 61 63 6f | 00 00 00 00 00 00 00 00 |..Monaco|........|
|00000da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000db0| 00 00 00 03 00 04 00 56 | 00 03 01 dc 02 79 00 56 |.......V|.....y.V|
|00000dc0| 00 03 01 dc 02 79 aa af | 3c 2a 00 00 06 e7 00 00 |.....y..|<*......|
|00000dd0| 06 e7 00 00 06 a2 01 00 | 00 00 00 04 00 01 00 01 |........|........|
|00000de0| 00 00 01 00 00 00 01 60 | 00 00 00 60 00 00 00 5a |.......`|...`...Z|
|00000df0| 15 89 7c b4 02 f2 00 00 | 00 1c 00 5a 00 02 52 45 |..|.....|...Z..RE|
|00000e00| 43 54 00 00 00 1a 4d 50 | 53 52 00 00 00 26 4d 57 |CT....MP|SR...&MW|
|00000e10| 42 42 00 00 00 32 00 00 | ff ff 00 00 00 00 00 00 |BB...2..|........|
|00000e20| 00 00 03 ed ff ff 00 00 | 00 0c 00 00 00 00 03 f0 |........|........|
|00000e30| ff ff 00 00 00 58 00 00 | 00 00 00 00 00 00 00 00 |.....X..|........|
|00000e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+