home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1996-06-30 | 9.9 KB | [TEXT/CWIE] |
view JSON data
|
view as text
|
open on a Mac
|
open on a PC
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: ModuleUtilities.h
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Sun Jun 30 10:48:27 1996, modified Sun Jun 30 10:48:27 1996, creator 'CWIE', type ASCII, 9374 bytes "ModuleUtilities.h" magic text fragment for file(1) cmd, 1st line "#ifndef __MODULE_UTILITIES__", 2nd line "#define __MODULE_UTILITIES__", 3rd line "", 4th line "", 5th line "#define maxNrItems 100%09%09/* max number of items in a dialog */", at 0x251e 410 bytes resource magic text fragment for file(1) cmd, 1st line "#ifndef __MODULE_UTILITIES__", 2nd line "#define __MODULE_UTILITIES__", 3rd line "", 4th line "", 5th line "#define maxNrItems 100%09%09/* max number of items in a dialog */"
| 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 |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [CWIE] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 11 4d 6f 64 75 6c 65 | 55 74 69 6c 69 74 69 65 |..Module|Utilitie|
|00000010| 73 2e 68 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |s.h.....|........|
|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 24 9e 00 | 00 01 9a ad fc 44 3b ad |.....$..|.....D;.|
|00000060| fc 44 3b 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.D;.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 ff c8 00 00 |........|........|
|00000080| 23 69 66 6e 64 65 66 20 | 5f 5f 4d 4f 44 55 4c 45 |#ifndef |__MODULE|
|00000090| 5f 55 54 49 4c 49 54 49 | 45 53 5f 5f 0d 23 64 65 |_UTILITI|ES__.#de|
|000000a0| 66 69 6e 65 20 5f 5f 4d | 4f 44 55 4c 45 5f 55 54 |fine __M|ODULE_UT|
|000000b0| 49 4c 49 54 49 45 53 5f | 5f 0d 0d 0d 23 64 65 66 |ILITIES_|_...#def|
|000000c0| 69 6e 65 20 6d 61 78 4e | 72 49 74 65 6d 73 20 31 |ine maxN|rItems 1|
|000000d0| 30 30 09 09 2f 2a 20 6d | 61 78 20 6e 75 6d 62 65 |00../* m|ax numbe|
|000000e0| 72 20 6f 66 20 69 74 65 | 6d 73 20 69 6e 20 61 20 |r of ite|ms in a |
|000000f0| 64 69 61 6c 6f 67 20 2a | 2f 0d 0d 74 79 70 65 64 |dialog *|/..typed|
|00000100| 65 66 20 65 6e 75 6d 20 | 7b 20 75 6e 6b 6e 6f 77 |ef enum |{ unknow|
|00000110| 6e 49 74 65 6d 3d 30 2c | 20 77 69 6e 64 6f 77 50 |nItem=0,| windowP|
|00000120| 6f 70 75 70 49 74 65 6d | 2c 20 63 6f 6c 75 6d 6e |opupItem|, column|
|00000130| 50 6f 70 75 70 49 74 65 | 6d 20 7d 20 49 74 65 6d |PopupIte|m } Item|
|00000140| 54 79 70 65 3b 09 2f 2f | 20 74 68 65 20 69 74 65 |Type;.//| the ite|
|00000150| 6d 20 74 79 70 65 73 0d | 0d 0d 74 79 70 65 64 65 |m types.|..typede|
|00000160| 66 20 73 74 72 75 63 74 | 0d 7b 0d 09 49 74 65 6d |f struct|.{..Item|
|00000170| 54 79 70 65 09 74 79 70 | 65 3b 09 09 09 2f 2f 20 |Type.typ|e;...// |
|00000180| 74 68 65 20 74 79 70 65 | 20 6f 66 20 61 6e 20 69 |the type| of an i|
|00000190| 74 65 6d 2c 20 75 6e 6b | 6e 6f 77 6e 49 74 65 6d |tem, unk|nownItem|
|000001a0| 20 69 66 20 69 74 65 6d | 20 6e 65 65 64 73 20 6e | if item| needs n|
|000001b0| 6f 20 73 70 65 63 69 61 | 6c 20 74 72 65 61 74 65 |o specia|l treate|
|000001c0| 6d 65 6e 74 09 09 09 09 | 0d 09 6c 6f 6e 67 09 09 |ment....|..long..|
|000001d0| 6e 31 3b 09 09 09 09 2f | 2f 20 75 73 65 64 20 74 |n1;..../|/ used t|
|000001e0| 6f 20 73 74 6f 72 65 20 | 73 70 65 63 69 61 6c 20 |o store |special |
|000001f0| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 66 6f 72 20 |informat|ion for |
|00000200| 73 6f 6d 65 20 69 74 65 | 6d 73 0d 09 09 09 09 09 |some ite|ms......|
|00000210| 09 09 09 2f 2f 09 66 6f | 72 20 64 61 74 61 43 6f |...//.fo|r dataCo|
|00000220| 6c 75 6d 6e 50 6f 70 75 | 70 73 3a 20 30 20 69 66 |lumnPopu|ps: 0 if|
|00000230| 20 61 6c 6c 20 63 6f 6c | 75 6d 6e 73 2c 20 31 20 | all col|umns, 1 |
|00000240| 69 66 20 6f 6e 6c 79 20 | 6e 75 6d 65 72 69 63 61 |if only |numerica|
|00000250| 6c 20 63 6f 6c 75 6d 6e | 73 2c 20 32 20 69 66 20 |l column|s, 2 if |
|00000260| 6f 6e 6c 79 20 74 65 78 | 74 20 63 6f 6c 75 6d 6e |only tex|t column|
|00000270| 73 0d 09 6c 6f 6e 67 09 | 09 6e 32 3b 09 09 09 09 |s..long.|.n2;....|
|00000280| 2f 2f 20 75 73 65 64 20 | 74 6f 20 73 74 6f 72 65 |// used |to store|
|00000290| 20 73 70 65 63 69 61 6c | 20 69 6e 66 6f 72 6d 61 | special| informa|
|000002a0| 74 69 6f 6e 20 66 6f 72 | 20 73 6f 6d 65 20 69 74 |tion for| some it|
|000002b0| 65 6d 73 0d 09 09 09 09 | 09 09 09 09 2f 2f 09 66 |ems.....|....//.f|
|000002c0| 6f 72 20 64 61 74 61 43 | 6f 6c 75 6d 6e 50 6f 70 |or dataC|olumnPop|
|000002d0| 75 70 73 3a 20 30 20 6f | 72 20 74 68 65 20 69 74 |ups: 0 o|r the it|
|000002e0| 65 6d 20 69 64 20 6f 66 | 20 61 20 63 6f 72 72 65 |em id of| a corre|
|000002f0| 73 70 6f 6e 64 69 6e 67 | 20 77 69 6e 64 6f 77 20 |sponding| window |
|00000300| 70 6f 70 75 70 0d 09 6c | 6f 6e 67 09 09 6e 33 3b |popup..l|ong..n3;|
|00000310| 09 09 09 09 2f 2f 20 75 | 73 65 64 20 74 6f 20 73 |....// u|sed to s|
|00000320| 74 6f 72 65 20 73 70 65 | 63 69 61 6c 20 69 6e 66 |tore spe|cial inf|
|00000330| 6f 72 6d 61 74 69 6f 6e | 20 66 6f 72 20 73 6f 6d |ormation| for som|
|00000340| 65 20 69 74 65 6d 73 0d | 09 09 09 09 09 09 09 09 |e items.|........|
|00000350| 2f 2f 09 66 6f 72 20 64 | 61 74 61 43 6f 6c 75 6d |//.for d|ataColum|
|00000360| 6e 50 6f 70 75 70 73 3a | 20 30 20 6f 72 20 74 68 |nPopups:| 0 or th|
|00000370| 65 20 77 69 6e 64 6f 77 | 52 65 66 49 44 20 69 74 |e window|RefID it|
|00000380| 20 77 61 73 20 6c 61 73 | 74 20 75 70 64 61 74 65 | was las|t update|
|00000390| 64 20 66 6f 72 0d 09 76 | 6f 69 64 2a 09 09 64 61 |d for..v|oid*..da|
|000003a0| 74 61 3b 09 09 09 2f 2f | 20 75 73 65 64 20 74 6f |ta;...//| used to|
|000003b0| 20 73 74 6f 72 65 20 69 | 6e 66 6f 72 6d 61 74 69 | store i|nformati|
|000003c0| 6f 6e 20 6f 6e 20 73 6f | 6d 65 20 69 74 65 6d 73 |on on so|me items|
|000003d0| 0d 09 09 09 09 09 09 09 | 09 2f 2f 20 66 6f 72 20 |........|.// for |
|000003e0| 77 69 6e 64 6f 77 50 6f | 70 75 70 49 74 65 6d 3a |windowPo|pupItem:|
|000003f0| 20 68 61 6e 64 6c 65 20 | 74 6f 20 61 6e 20 61 72 | handle |to an ar|
|00000400| 72 61 79 20 6f 66 20 77 | 69 6e 64 6f 77 52 65 66 |ray of w|indowRef|
|00000410| 49 44 73 0d 7d 20 49 74 | 65 6d 52 65 63 6f 72 64 |IDs.} It|emRecord|
|00000420| 3b 0d 0d 74 79 70 65 64 | 65 66 20 73 74 72 75 63 |;..typed|ef struc|
|00000430| 74 0d 7b 0d 09 57 69 6e | 64 6f 77 50 74 72 09 09 |t.{..Win|dowPtr..|
|00000440| 64 69 61 6c 6f 67 3b 09 | 09 09 09 09 2f 2f 20 77 |dialog;.|....// w|
|00000450| 69 6e 64 6f 77 20 70 6f | 69 6e 74 65 72 20 74 6f |indow po|inter to|
|00000460| 20 74 68 65 20 64 69 61 | 6c 6f 67 0d 09 73 68 6f | the dia|log..sho|
|00000470| 72 74 09 09 09 6f 6b 49 | 74 65 6d 2c 20 63 61 6e |rt...okI|tem, can|
|00000480| 63 65 6c 49 74 65 6d 3b | 09 09 2f 2f 20 74 68 65 |celItem;|..// the|
|00000490| 20 69 74 65 6d 73 20 74 | 6f 20 62 65 20 61 63 74 | items t|o be act|
|000004a0| 69 76 61 74 65 64 20 6f | 6e 20 72 65 74 75 72 6e |ivated o|n return|
|000004b0| 2f 63 6d 64 2d 2e 20 28 | 30 20 69 66 20 6e 6f 6e |/cmd-. (|0 if non|
|000004c0| 65 29 0d 09 73 68 6f 72 | 74 09 09 09 69 74 65 6d |e)..shor|t...item|
|000004d0| 48 69 74 3b 09 09 09 09 | 2f 2f 20 74 68 65 20 69 |Hit;....|// the i|
|000004e0| 74 65 6d 20 74 6f 20 62 | 65 20 72 65 74 75 72 6e |tem to b|e return|
|000004f0| 65 64 20 66 72 6f 6d 20 | 4d 79 4d 6f 64 61 6c 44 |ed from |MyModalD|
|00000500| 69 61 6c 6f 67 0d 09 49 | 74 65 6d 52 65 63 6f 72 |ialog..I|temRecor|
|00000510| 64 09 09 69 74 65 6d 73 | 5b 6d 61 78 4e 72 49 74 |d..items|[maxNrIt|
|00000520| 65 6d 73 5d 3b 09 09 2f | 2f 20 61 6e 20 61 72 72 |ems];../|/ an arr|
|00000530| 61 79 20 77 69 74 68 20 | 69 6e 66 6f 72 6d 61 74 |ay with |informat|
|00000540| 69 6f 6e 20 6f 6e 20 73 | 6f 6d 65 20 6f 66 20 74 |ion on s|ome of t|
|00000550| 68 65 20 69 74 65 6d 73 | 0d 09 6c 6f 6e 67 09 09 |he items|..long..|
|00000560| 09 74 69 6d 65 72 3b 09 | 09 09 09 09 2f 2f 20 21 |.timer;.|....// !|
|00000570| 3d 20 30 20 69 66 20 74 | 69 6d 65 72 20 69 73 20 |= 0 if t|imer is |
|00000580| 65 6e 61 62 6c 65 64 20 | 28 73 65 65 20 4d 79 53 |enabled |(see MyS|
|00000590| 65 74 54 69 6d 65 72 29 | 0d 09 52 65 63 74 09 09 |etTimer)|..Rect..|
|000005a0| 09 66 72 61 6d 65 73 5b | 34 5d 3b 09 09 09 09 2f |.frames[|4];..../|
|000005b0| 2f 20 72 65 63 74 73 20 | 74 6f 20 66 72 61 6d 65 |/ rects |to frame|
|000005c0| 20 28 30 2c 30 2c 30 2c | 30 29 20 69 66 20 6e 6f | (0,0,0,|0) if no|
|000005d0| 20 66 72 61 6d 65 20 28 | 53 65 65 20 4d 79 53 65 | frame (|See MySe|
|000005e0| 74 46 72 61 6d 65 29 0d | 7d 44 69 61 6c 6f 67 44 |tFrame).|}DialogD|
|000005f0| 61 74 61 3b 0d 0d 44 69 | 61 6c 6f 67 44 61 74 61 |ata;..Di|alogData|
|00000600| 2a 20 4d 79 47 65 74 4e | 65 77 44 69 61 6c 6f 67 |* MyGetN|ewDialog|
|00000610| 28 73 68 6f 72 74 20 72 | 65 73 49 44 2c 20 73 68 |(short r|esID, sh|
|00000620| 6f 72 74 20 6f 6b 49 74 | 65 6d 2c 20 73 68 6f 72 |ort okIt|em, shor|
|00000630| 74 20 63 61 6e 63 65 6c | 49 74 65 6d 29 3b 0d 09 |t cancel|Item);..|
|00000640| 2f 2f 20 63 61 6c 6c 20 | 69 6e 73 74 65 61 64 20 |// call |instead |
|00000650| 6f 66 20 47 65 74 4e 65 | 77 44 69 61 6c 6f 67 0d |of GetNe|wDialog.|
|00000660| 09 2f 2f 20 72 65 73 49 | 44 3a 09 09 74 68 65 20 |.// resI|D:..the |
|00000670| 72 65 73 6f 75 72 63 65 | 20 49 44 20 6f 66 20 74 |resource| ID of t|
|00000680| 68 65 20 44 4c 4f 47 0d | 09 2f 2f 20 6f 6b 49 74 |he DLOG.|.// okIt|
|00000690| 65 6d 3a 09 09 74 68 65 | 20 69 74 65 6d 20 74 6f |em:..the| item to|
|000006a0| 20 62 65 20 61 63 74 69 | 76 61 74 65 64 20 77 68 | be acti|vated wh|
|000006b0| 65 6e 20 45 6e 74 65 72 | 2f 52 65 74 75 72 6e 20 |en Enter|/Return |
|000006c0| 69 73 20 70 72 65 73 73 | 65 64 20 28 30 20 69 66 |is press|ed (0 if|
|000006d0| 20 6e 6f 6e 65 29 0d 09 | 2f 2f 20 63 61 6e 63 6c | none)..|// cancl|
|000006e0| 65 49 74 65 6d 09 74 68 | 65 20 69 74 65 6d 20 74 |eItem.th|e item t|
|000006f0| 6f 20 62 65 20 61 63 74 | 69 76 61 74 65 64 20 77 |o be act|ivated w|
|00000700| 68 65 6e 20 45 73 63 61 | 70 65 2f 63 6d 64 2d 2e |hen Esca|pe/cmd-.|
|00000710| 20 69 73 20 70 72 65 73 | 73 65 64 20 28 30 20 69 | is pres|sed (0 i|
|00000720| 66 20 6e 6f 6e 65 29 0d | 09 2f 2f 20 72 65 74 75 |f none).|.// retu|
|00000730| 72 6e 73 20 6e 69 6c 20 | 69 66 20 66 61 69 6c 75 |rns nil |if failu|
|00000740| 72 65 0d 0d 76 6f 69 64 | 20 4d 79 44 69 73 70 6f |re..void| MyDispo|
|00000750| 73 65 44 69 61 6c 6f 67 | 28 44 69 61 6c 6f 67 44 |seDialog|(DialogD|
|00000760| 61 74 61 2a 20 64 6c 67 | 29 3b 0d 09 2f 2f 20 63 |ata* dlg|);..// c|
|00000770| 61 6c 6c 20 69 6e 73 74 | 65 61 64 20 6f 66 20 44 |all inst|ead of D|
|00000780| 69 73 70 6f 73 65 44 69 | 61 6c 6f 67 0d 09 2f 2f |isposeDi|alog..//|
|00000790| 20 64 6c 67 3a 20 74 68 | 65 20 64 61 74 61 20 72 | dlg: th|e data r|
|000007a0| 65 74 75 72 6e 65 64 20 | 62 79 20 4d 79 47 65 74 |eturned |by MyGet|
|000007b0| 4e 65 77 44 69 61 6c 6f | 67 0d 0d 0d 76 6f 69 64 |NewDialo|g...void|
|000007c0| 20 4d 79 4d 6f 64 61 6c | 44 69 61 6c 6f 67 28 44 | MyModal|Dialog(D|
|000007d0| 69 61 6c 6f 67 44 61 74 | 61 2a 20 64 6c 67 2c 20 |ialogDat|a* dlg, |
|000007e0| 73 68 6f 72 74 2a 20 63 | 6f 6e 73 74 20 69 74 65 |short* c|onst ite|
|000007f0| 6d 48 69 74 29 3b 0d 09 | 2f 2f 20 63 61 6c 6c 20 |mHit);..|// call |
|00000800| 69 6e 73 74 65 61 64 20 | 6f 66 20 4d 6f 64 61 6c |instead |of Modal|
|00000810| 44 69 61 6c 6f 67 0d 09 | 2f 2f 20 64 6c 67 3a 20 |Dialog..|// dlg: |
|00000820| 74 68 65 20 64 61 74 61 | 20 72 65 74 75 72 6e 65 |the data| returne|
|00000830| 64 20 62 79 20 4d 79 47 | 65 74 4e 65 77 44 69 61 |d by MyG|etNewDia|
|00000840| 6c 6f 67 0d 09 2f 2f 20 | 41 75 74 6f 6d 61 74 69 |log..// |Automati|
|00000850| 63 61 6c 6c 79 20 74 6f | 67 67 6c 65 73 20 63 68 |cally to|ggles ch|
|00000860| 65 63 6b 62 6f 78 65 73 | 20 77 68 65 6e 20 63 6c |eckboxes| when cl|
|00000870| 69 63 6b 65 64 0d 0d 76 | 6f 69 64 20 4d 79 53 68 |icked..v|oid MySh|
|00000880| 6f 77 44 69 61 6c 6f 67 | 28 44 69 61 6c 6f 67 44 |owDialog|(DialogD|
|00000890| 61 74 61 2a 20 64 6c 67 | 29 3b 0d 09 2f 2f 20 6d |ata* dlg|);..// m|
|000008a0| 61 6b 65 73 20 74 68 65 | 20 64 69 61 6c 6f 67 20 |akes the| dialog |
|000008b0| 76 69 73 69 62 6c 65 0d | 0d 0d 2f 2f 20 72 6f 75 |visible.|..// rou|
|000008c0| 74 69 6e 65 73 20 66 6f | 72 20 61 63 63 65 73 73 |tines fo|r access|
|000008d0| 69 6e 67 20 69 74 65 6d | 73 3a 0d 0d 76 6f 69 64 |ing item|s:..void|
|000008e0| 20 4d 79 47 65 74 49 74 | 65 6d 54 65 78 74 28 44 | MyGetIt|emText(D|
|000008f0| 69 61 6c 6f 67 44 61 74 | 61 2a 20 64 6c 67 2c 20 |ialogDat|a* dlg, |
|00000900| 73 68 6f 72 74 20 69 74 | 65 6d 2c 20 53 74 72 32 |short it|em, Str2|
|00000910| 35 35 20 64 65 73 74 29 | 3b 0d 09 2f 2f 20 72 65 |55 dest)|;..// re|
|00000920| 74 75 72 6e 73 20 74 68 | 65 20 74 65 78 74 20 69 |turns th|e text i|
|00000930| 6e 20 61 6e 20 69 74 65 | 6d 0d 0d 76 6f 69 64 20 |n an ite|m..void |
|00000940| 4d 79 53 65 74 49 74 65 | 6d 54 65 78 74 28 44 69 |MySetIte|mText(Di|
|00000950| 61 6c 6f 67 44 61 74 61 | 2a 20 64 6c 67 2c 20 73 |alogData|* dlg, s|
|00000960| 68 6f 72 74 20 69 74 65 | 6d 2c 20 63 6f 6e 73 74 |hort ite|m, const|
|00000970| 20 53 74 72 32 35 35 20 | 73 29 3b 0d 09 2f 2f 20 | Str255 |s);..// |
|00000980| 73 65 74 73 20 74 68 65 | 20 74 65 78 74 20 6f 66 |sets the| text of|
|00000990| 20 61 6e 20 69 74 65 6d | 0d 0d 76 6f 69 64 20 4d | an item|..void M|
|000009a0| 79 53 65 6c 65 63 74 49 | 74 65 6d 54 65 78 74 28 |ySelectI|temText(|
|000009b0| 44 69 61 6c 6f 67 44 61 | 74 61 2a 20 64 6c 67 2c |DialogDa|ta* dlg,|
|000009c0| 20 73 68 6f 72 74 20 69 | 64 2c 20 73 68 6f 72 74 | short i|d, short|
|000009d0| 20 73 74 61 72 74 2c 20 | 73 68 6f 72 74 20 65 6e | start, |short en|
|000009e0| 64 29 3b 0d 09 2f 2f 20 | 73 65 6c 65 63 74 73 20 |d);..// |selects |
|000009f0| 61 20 74 65 78 74 20 65 | 64 69 74 20 69 74 65 6d |a text e|dit item|
|00000a00| 0d 0d 76 6f 69 64 20 4d | 79 53 65 74 45 78 74 65 |..void M|ySetExte|
|00000a10| 6e 64 65 64 49 74 65 6d | 28 44 69 61 6c 6f 67 44 |ndedItem|(DialogD|
|00000a20| 61 74 61 2a 20 64 6c 67 | 2c 20 73 68 6f 72 74 20 |ata* dlg|, short |
|00000a30| 69 64 2c 20 64 6f 75 62 | 6c 65 20 76 61 6c 29 3b |id, doub|le val);|
|00000a40| 0d 09 2f 2f 20 73 65 74 | 73 20 61 20 74 65 78 74 |..// set|s a text|
|00000a50| 20 69 74 65 6d 20 74 6f | 20 61 20 66 6c 6f 61 74 | item to| a float|
|00000a60| 69 6e 67 20 70 6f 69 6e | 74 20 6e 75 6d 62 65 72 |ing poin|t number|
|00000a70| 0d 0d 42 6f 6f 6c 65 61 | 6e 20 4d 79 47 65 74 45 |..Boolea|n MyGetE|
|00000a80| 78 74 65 6e 64 65 64 49 | 74 65 6d 28 44 69 61 6c |xtendedI|tem(Dial|
|00000a90| 6f 67 44 61 74 61 2a 20 | 64 6c 67 2c 20 73 68 6f |ogData* |dlg, sho|
|00000aa0| 72 74 20 69 64 2c 20 64 | 6f 75 62 6c 65 2a 20 63 |rt id, d|ouble* c|
|00000ab0| 6f 6e 73 74 20 76 61 6c | 29 3b 0d 09 2f 2f 20 72 |onst val|);..// r|
|00000ac0| 65 74 72 69 65 76 65 73 | 20 61 20 66 6c 6f 61 74 |etrieves| a float|
|00000ad0| 69 6e 67 20 70 6f 69 6e | 74 20 6e 75 6d 62 65 72 |ing poin|t number|
|00000ae0| 20 66 72 6f 6d 20 61 20 | 74 65 78 74 20 69 74 65 | from a |text ite|
|00000af0| 6d 0d 09 2f 2f 20 69 66 | 20 63 6f 6e 76 65 72 73 |m..// if| convers|
|00000b00| 69 6f 6e 20 66 61 69 6c | 73 3a 20 76 61 6c 20 69 |ion fail|s: val i|
|00000b10| 73 20 75 6e 63 68 61 6e | 67 65 64 2c 20 74 68 65 |s unchan|ged, the|
|00000b20| 20 74 65 78 74 20 69 73 | 20 73 65 6c 65 63 74 65 | text is| selecte|
|00000b30| 64 2c 20 61 6e 64 20 66 | 61 6c 73 65 20 69 73 20 |d, and f|alse is |
|00000b40| 72 65 74 75 72 6e 65 64 | 0d 0d 76 6f 69 64 20 4d |returned|..void M|
|00000b50| 79 53 65 74 4c 6f 6e 67 | 49 74 65 6d 28 44 69 61 |ySetLong|Item(Dia|
|00000b60| 6c 6f 67 44 61 74 61 2a | 20 64 6c 67 2c 20 73 68 |logData*| dlg, sh|
|00000b70| 6f 72 74 20 69 64 2c 20 | 6c 6f 6e 67 20 76 61 6c |ort id, |long val|
|00000b80| 29 3b 0d 09 2f 2f 20 73 | 65 74 73 20 61 20 74 65 |);..// s|ets a te|
|00000b90| 78 74 20 69 74 65 6d 20 | 74 6f 20 61 20 6c 6f 6e |xt item |to a lon|
|00000ba0| 67 69 6e 74 20 6e 75 6d | 62 65 72 0d 0d 42 6f 6f |gint num|ber..Boo|
|00000bb0| 6c 65 61 6e 20 4d 79 47 | 65 74 4c 6f 6e 67 49 74 |lean MyG|etLongIt|
|00000bc0| 65 6d 28 44 69 61 6c 6f | 67 44 61 74 61 2a 20 64 |em(Dialo|gData* d|
|00000bd0| 6c 67 2c 20 73 68 6f 72 | 74 20 69 64 2c 20 6c 6f |lg, shor|t id, lo|
|00000be0| 6e 67 2a 20 63 6f 6e 73 | 74 20 76 61 6c 29 3b 0d |ng* cons|t val);.|
|00000bf0| 09 2f 2f 20 72 65 74 72 | 69 65 76 65 73 20 61 20 |.// retr|ieves a |
|00000c00| 6c 6f 6e 67 69 6e 74 20 | 6e 75 6d 62 65 72 20 66 |longint |number f|
|00000c10| 72 6f 6d 20 61 20 74 65 | 78 74 20 69 74 65 6d 0d |rom a te|xt item.|
|00000c20| 09 2f 2f 20 69 66 20 63 | 6f 6e 76 65 72 73 69 6f |.// if c|onversio|
|00000c30| 6e 20 66 61 69 6c 73 3a | 20 76 61 6c 20 69 73 20 |n fails:| val is |
|00000c40| 75 6e 63 68 61 6e 67 65 | 64 2c 20 74 68 65 20 74 |unchange|d, the t|
|00000c50| 65 78 74 20 69 73 20 73 | 65 6c 65 63 74 65 64 2c |ext is s|elected,|
|00000c60| 20 61 6e 64 20 66 61 6c | 73 65 20 69 73 20 72 65 | and fal|se is re|
|00000c70| 74 75 72 6e 65 64 0d 0d | 0d 43 6f 6e 74 72 6f 6c |turned..|.Control|
|00000c80| 48 61 6e 64 6c 65 20 4d | 79 47 65 74 49 74 65 6d |Handle M|yGetItem|
|00000c90| 48 61 6e 64 6c 65 28 44 | 69 61 6c 6f 67 44 61 74 |Handle(D|ialogDat|
|00000ca0| 61 2a 20 64 6c 67 2c 20 | 73 68 6f 72 74 20 69 74 |a* dlg, |short it|
|00000cb0| 65 6d 29 3b 0d 09 2f 2f | 20 72 65 74 75 72 6e 73 |em);..//| returns|
|00000cc0| 20 74 68 65 20 63 6f 6e | 74 72 6f 6c 20 68 61 6e | the con|trol han|
|00000cd0| 64 6c 65 20 6f 66 20 61 | 6e 20 69 74 65 6d 0d 0d |dle of a|n item..|
|00000ce0| 76 6f 69 64 20 4d 79 48 | 69 6c 69 74 65 49 74 65 |void MyH|iliteIte|
|00000cf0| 6d 28 44 69 61 6c 6f 67 | 44 61 74 61 2a 20 64 6c |m(Dialog|Data* dl|
|00000d00| 67 2c 20 73 68 6f 72 74 | 20 69 74 65 6d 2c 20 73 |g, short| item, s|
|00000d10| 68 6f 72 74 20 76 61 6c | 75 65 29 3b 0d 09 2f 2f |hort val|ue);..//|
|00000d20| 20 68 69 6c 69 74 65 73 | 20 61 6e 20 69 74 65 6d | hilites| an item|
|00000d30| 20 28 76 61 6c 75 65 20 | 3d 3d 20 32 35 35 20 66 | (value |== 255 f|
|00000d40| 6f 72 20 64 69 73 61 62 | 6c 69 6e 67 29 0d 0d 76 |or disab|ling)..v|
|00000d50| 6f 69 64 20 4d 79 53 68 | 6f 77 49 74 65 6d 28 44 |oid MySh|owItem(D|
|00000d60| 69 61 6c 6f 67 44 61 74 | 61 2a 20 64 6c 67 2c 20 |ialogDat|a* dlg, |
|00000d70| 73 68 6f 72 74 20 69 74 | 65 6d 29 3b 0d 09 2f 2f |short it|em);..//|
|00000d80| 20 6d 61 6b 65 73 20 74 | 68 65 20 67 69 76 65 6e | makes t|he given|
|00000d90| 20 69 74 65 6d 20 76 69 | 73 69 62 6c 65 0d 0d 76 | item vi|sible..v|
|00000da0| 6f 69 64 20 4d 79 48 69 | 64 65 49 74 65 6d 28 44 |oid MyHi|deItem(D|
|00000db0| 69 61 6c 6f 67 44 61 74 | 61 2a 20 64 6c 67 2c 20 |ialogDat|a* dlg, |
|00000dc0| 73 68 6f 72 74 20 69 74 | 65 6d 29 3b 0d 09 2f 2f |short it|em);..//|
|00000dd0| 20 6d 61 6b 65 73 20 74 | 68 65 20 67 69 76 65 6e | makes t|he given|
|00000de0| 20 69 74 65 6d 20 69 6e | 76 69 73 69 62 6c 65 0d | item in|visible.|
|00000df0| 0d 52 65 63 74 20 4d 79 | 47 65 74 49 74 65 6d 52 |.Rect My|GetItemR|
|00000e00| 65 63 74 28 44 69 61 6c | 6f 67 44 61 74 61 2a 20 |ect(Dial|ogData* |
|00000e10| 64 6c 67 2c 20 73 68 6f | 72 74 20 69 74 65 6d 29 |dlg, sho|rt item)|
|00000e20| 3b 0d 09 2f 2f 20 72 65 | 74 75 72 6e 73 20 65 6e |;..// re|turns en|
|00000e30| 63 6c 6f 73 69 6e 67 20 | 72 65 63 74 20 6f 66 20 |closing |rect of |
|00000e40| 61 6e 20 69 74 65 6d 0d | 0d 76 6f 69 64 20 4d 79 |an item.|.void My|
|00000e50| 49 6e 76 61 6c 69 64 61 | 74 65 49 74 65 6d 28 44 |Invalida|teItem(D|
|00000e60| 69 61 6c 6f 67 44 61 74 | 61 2a 20 64 6c 67 2c 20 |ialogDat|a* dlg, |
|00000e70| 73 68 6f 72 74 20 69 74 | 65 6d 29 3b 0d 09 2f 2f |short it|em);..//|
|00000e80| 20 69 6e 76 61 6c 69 64 | 61 74 65 73 20 74 68 65 | invalid|ates the|
|00000e90| 20 67 69 76 65 6e 20 69 | 74 65 6d 0d 0d 76 6f 69 | given i|tem..voi|
|00000ea0| 64 20 4d 79 53 65 74 49 | 74 65 6d 56 61 6c 75 65 |d MySetI|temValue|
|00000eb0| 28 44 69 61 6c 6f 67 44 | 61 74 61 2a 20 64 6c 67 |(DialogD|ata* dlg|
|00000ec0| 2c 20 73 68 6f 72 74 20 | 69 74 65 6d 2c 20 73 68 |, short |item, sh|
|00000ed0| 6f 72 74 20 76 61 6c 75 | 65 29 3b 0d 09 2f 2f 20 |ort valu|e);..// |
|00000ee0| 73 65 74 73 20 74 68 65 | 20 76 61 6c 75 65 20 6f |sets the| value o|
|00000ef0| 66 20 61 20 63 6f 6e 74 | 72 6f 6c 20 61 6e 20 69 |f a cont|rol an i|
|00000f00| 74 65 6d 0d 0d 73 68 6f | 72 74 20 4d 79 47 65 74 |tem..sho|rt MyGet|
|00000f10| 49 74 65 6d 56 61 6c 75 | 65 28 44 69 61 6c 6f 67 |ItemValu|e(Dialog|
|00000f20| 44 61 74 61 2a 20 64 6c | 67 2c 20 73 68 6f 72 74 |Data* dl|g, short|
|00000f30| 20 69 74 65 6d 29 3b 0d | 09 2f 2f 20 67 65 74 73 | item);.|.// gets|
|00000f40| 20 74 68 65 20 76 61 6c | 75 65 20 6f 66 20 61 6e | the val|ue of an|
|00000f50| 20 69 74 65 6d 0d 09 0d | 76 6f 69 64 20 53 65 74 | item...|void Set|
|00000f60| 49 74 65 6d 47 65 6e 65 | 72 61 6c 28 44 69 61 6c |ItemGene|ral(Dial|
|00000f70| 6f 67 44 61 74 61 2a 20 | 64 6c 67 2c 20 73 68 6f |ogData* |dlg, sho|
|00000f80| 72 74 20 69 74 65 6d 2c | 20 76 6f 69 64 2a 20 64 |rt item,| void* d|
|00000f90| 61 74 61 29 3b 0d 09 2f | 2f 20 67 65 6e 65 72 69 |ata);../|/ generi|
|00000fa0| 63 20 72 6f 75 74 69 6e | 65 20 66 6f 72 20 73 65 |c routin|e for se|
|00000fb0| 74 74 69 6e 67 20 69 74 | 65 6d 73 2e 20 50 72 65 |tting it|ems. Pre|
|00000fc0| 73 65 6e 74 6c 79 20 72 | 65 63 6f 67 6e 69 7a 65 |sently r|ecognize|
|00000fd0| 64 20 62 79 0d 09 2f 2f | 09 77 69 6e 64 6f 77 20 |d by..//|.window |
|00000fe0| 70 6f 70 75 70 20 69 74 | 65 6d 73 3a 09 64 61 74 |popup it|ems:.dat|
|00000ff0| 61 20 6d 75 73 74 20 62 | 65 20 61 20 70 6f 69 6e |a must b|e a poin|
|00001000| 74 65 72 20 74 6f 20 61 | 20 6c 6f 6e 67 20 76 61 |ter to a| long va|
|00001010| 6c 75 65 2c 20 63 6f 6e | 74 61 69 6e 69 6e 67 20 |lue, con|taining |
|00001020| 74 68 65 20 77 69 6e 64 | 6f 77 20 72 65 66 20 49 |the wind|ow ref I|
|00001030| 44 0d 0d 76 6f 69 64 20 | 47 65 74 49 74 65 6d 47 |D..void |GetItemG|
|00001040| 65 6e 65 72 61 6c 28 44 | 69 61 6c 6f 67 44 61 74 |eneral(D|ialogDat|
|00001050| 61 2a 20 64 6c 67 2c 20 | 73 68 6f 72 74 20 69 74 |a* dlg, |short it|
|00001060| 65 6d 2c 20 76 6f 69 64 | 2a 20 64 61 74 61 29 3b |em, void|* data);|
|00001070| 0d 09 2f 2f 20 67 65 6e | 65 72 69 63 20 72 6f 75 |..// gen|eric rou|
|00001080| 74 69 6e 65 20 67 65 74 | 74 69 6e 67 20 74 68 65 |tine get|ting the|
|00001090| 20 73 65 74 74 69 6e 67 | 20 6f 66 20 69 74 65 6d | setting| of item|
|000010a0| 73 2e 20 50 72 65 73 65 | 6e 74 6c 79 20 72 65 63 |s. Prese|ntly rec|
|000010b0| 6f 67 6e 69 7a 65 64 20 | 62 79 0d 09 2f 2f 09 77 |ognized |by..//.w|
|000010c0| 69 6e 64 6f 77 20 70 6f | 70 75 70 20 69 74 65 6d |indow po|pup item|
|000010d0| 73 3a 09 64 61 74 61 20 | 6d 75 73 74 20 62 65 20 |s:.data |must be |
|000010e0| 61 20 70 6f 69 6e 74 65 | 72 20 74 6f 20 61 20 6c |a pointe|r to a l|
|000010f0| 6f 6e 67 20 76 61 6c 75 | 65 2c 20 77 68 65 72 65 |ong valu|e, where|
|00001100| 20 74 68 65 20 77 69 6e | 64 6f 77 20 72 65 66 20 | the win|dow ref |
|00001110| 49 44 20 69 73 20 72 65 | 74 75 72 6e 65 64 0d 0d |ID is re|turned..|
|00001120| 0d 76 6f 69 64 20 46 6c | 61 73 68 43 6f 6e 74 72 |.void Fl|ashContr|
|00001130| 6f 6c 28 43 6f 6e 74 72 | 6f 6c 48 61 6e 64 6c 65 |ol(Contr|olHandle|
|00001140| 20 63 6f 6e 74 72 6f 6c | 29 3b 0d 09 2f 2f 20 68 | control|);..// h|
|00001150| 69 6c 69 74 65 73 20 74 | 68 65 20 63 6f 6e 74 72 |ilites t|he contr|
|00001160| 6f 6c 20 66 6f 72 20 61 | 20 6d 6f 6d 65 6e 74 0d |ol for a| moment.|
|00001170| 0d 2f 2f 20 73 70 65 63 | 69 61 6c 20 70 6f 70 75 |.// spec|ial popu|
|00001180| 70 20 69 74 65 6d 73 3a | 0d 0d 76 6f 69 64 20 4d |p items:|..void M|
|00001190| 61 6b 65 57 69 6e 64 6f | 77 50 6f 70 75 70 28 44 |akeWindo|wPopup(D|
|000011a0| 69 61 6c 6f 67 44 61 74 | 61 2a 20 64 6c 67 2c 20 |ialogDat|a* dlg, |
|000011b0| 73 68 6f 72 74 20 69 74 | 65 6d 2c 20 6c 6f 6e 67 |short it|em, long|
|000011c0| 20 77 69 6e 64 6f 77 54 | 79 70 65 29 3b 0d 09 2f | windowT|ype);../|
|000011d0| 2f 20 61 64 64 73 20 61 | 20 6c 69 73 74 20 6f 66 |/ adds a| list of|
|000011e0| 20 77 69 6e 64 6f 77 73 | 20 74 6f 20 74 68 65 20 | windows| to the |
|000011f0| 67 69 76 65 6e 20 70 6f | 70 75 70 20 69 74 65 6d |given po|pup item|
|00001200| 0d 09 2f 2f 20 77 69 6e | 64 6f 77 54 79 70 65 20 |..// win|dowType |
|00001210| 63 61 6e 20 62 65 20 64 | 72 61 77 69 6e 67 54 79 |can be d|rawingTy|
|00001220| 70 65 2c 20 64 61 74 61 | 54 79 70 65 20 6f 72 20 |pe, data|Type or |
|00001230| 74 65 78 74 54 79 70 65 | 20 61 6e 64 20 64 65 66 |textType| and def|
|00001240| 69 6e 65 73 0d 09 2f 2f | 20 74 68 65 20 77 69 6e |ines..//| the win|
|00001250| 64 6f 77 20 74 79 70 65 | 20 74 68 61 74 20 73 68 |dow type| that sh|
|00001260| 6f 75 6c 64 20 62 65 20 | 61 64 64 65 64 20 74 6f |ould be |added to|
|00001270| 20 74 68 65 20 6d 65 6e | 75 0d 09 2f 2f 20 75 73 | the men|u..// us|
|00001280| 65 20 47 65 74 49 74 65 | 6d 47 65 6e 65 72 61 6c |e GetIte|mGeneral|
|00001290| 20 74 6f 20 67 65 74 20 | 74 68 65 20 73 65 6c 65 | to get |the sele|
|000012a0| 63 74 65 64 20 77 69 6e | 64 6f 77 0d 0d 76 6f 69 |cted win|dow..voi|
|000012b0| 64 20 4d 61 6b 65 43 6f | 6c 75 6d 6e 50 6f 70 75 |d MakeCo|lumnPopu|
|000012c0| 70 28 44 69 61 6c 6f 67 | 44 61 74 61 2a 20 64 6c |p(Dialog|Data* dl|
|000012d0| 67 2c 20 73 68 6f 72 74 | 20 69 74 65 6d 2c 20 73 |g, short| item, s|
|000012e0| 68 6f 72 74 20 77 69 6e | 64 6f 77 50 6f 70 75 70 |hort win|dowPopup|
|000012f0| 2c 20 73 68 6f 72 74 20 | 77 68 61 74 29 3b 0d 09 |, short |what);..|
|00001300| 2f 2f 20 61 64 64 73 20 | 61 20 6c 69 73 74 20 6f |// adds |a list o|
|00001310| 66 20 63 6f 6c 75 6d 6e | 20 6e 61 6d 65 73 20 74 |f column| names t|
|00001320| 6f 20 61 20 70 6f 70 75 | 70 20 69 74 65 6d 0d 09 |o a popu|p item..|
|00001330| 2f 2f 09 77 69 6e 64 6f | 77 50 6f 70 75 70 3a 09 |//.windo|wPopup:.|
|00001340| 74 68 65 20 69 74 65 6d | 20 69 64 20 6f 66 20 61 |the item| id of a|
|00001350| 20 77 69 6e 64 6f 77 20 | 70 6f 70 75 70 20 74 68 | window |popup th|
|00001360| 61 74 20 74 68 69 73 20 | 69 74 65 6d 20 62 65 6c |at this |item bel|
|00001370| 6f 6e 67 73 20 74 6f 2c | 20 30 20 69 66 20 6e 6f |ongs to,| 0 if no|
|00001380| 6e 65 0d 09 2f 2f 09 77 | 68 61 74 3a 09 09 09 30 |ne..//.w|hat:...0|
|00001390| 20 69 66 20 61 6c 6c 20 | 63 6f 6c 75 6d 6e 73 2c | if all |columns,|
|000013a0| 20 31 20 69 66 20 6f 6e | 6c 79 20 64 61 74 61 20 | 1 if on|ly data |
|000013b0| 63 6f 6c 75 6d 6e 73 2c | 20 32 20 69 66 20 6f 6e |columns,| 2 if on|
|000013c0| 6c 79 20 74 65 78 74 20 | 63 6f 6c 75 6d 6e 73 0d |ly text |columns.|
|000013d0| 09 2f 2f 20 75 73 65 20 | 47 65 74 49 74 65 6d 56 |.// use |GetItemV|
|000013e0| 61 6c 75 65 2f 53 65 74 | 49 74 65 6d 56 61 6c 75 |alue/Set|ItemValu|
|000013f0| 65 20 74 6f 20 61 63 63 | 65 73 73 20 74 68 65 20 |e to acc|ess the |
|00001400| 63 6f 6c 75 6d 6e 0d 09 | 2f 2f 20 69 66 20 74 68 |column..|// if th|
|00001410| 65 20 63 6f 6c 75 6d 6e | 20 70 6f 70 75 70 20 62 |e column| popup b|
|00001420| 65 6c 6f 6e 67 73 20 74 | 6f 20 61 20 77 69 6e 64 |elongs t|o a wind|
|00001430| 6f 77 20 70 6f 70 75 70 | 2c 20 66 69 72 73 74 20 |ow popup|, first |
|00001440| 63 61 6c 6c 20 4d 61 6b | 65 57 69 6e 64 6f 77 50 |call Mak|eWindowP|
|00001450| 6f 70 75 70 20 66 6f 72 | 20 74 68 65 20 77 69 6e |opup for| the win|
|00001460| 64 6f 77 20 70 6f 70 75 | 70 0d 0d 2f 2f 20 73 65 |dow popu|p..// se|
|00001470| 74 74 69 6e 67 20 74 68 | 65 20 74 69 6d 65 72 20 |tting th|e timer |
|00001480| 6f 66 20 61 20 64 69 61 | 6c 6f 67 3a 0d 0d 76 6f |of a dia|log:..vo|
|00001490| 69 64 20 4d 79 53 65 74 | 54 69 6d 65 72 28 44 69 |id MySet|Timer(Di|
|000014a0| 61 6c 6f 67 44 61 74 61 | 2a 20 64 6c 67 2c 20 6c |alogData|* dlg, l|
|000014b0| 6f 6e 67 20 74 69 63 6b | 73 29 3b 0d 09 2f 2f 20 |ong tick|s);..// |
|000014c0| 45 61 63 68 20 64 69 61 | 6c 6f 67 20 63 61 6e 20 |Each dia|log can |
|000014d0| 68 61 76 65 20 61 20 74 | 69 6d 65 72 2c 20 77 68 |have a t|imer, wh|
|000014e0| 69 63 68 20 69 73 20 64 | 69 73 61 62 6c 65 64 20 |ich is d|isabled |
|000014f0| 62 79 20 64 65 66 61 75 | 6c 74 2e 20 54 6f 20 65 |by defau|lt. To e|
|00001500| 6e 61 62 6c 65 20 74 68 | 65 20 74 69 6d 65 72 2c |nable th|e timer,|
|00001510| 0d 09 2f 2f 20 63 61 6c | 6c 20 74 68 65 20 72 6f |..// cal|l the ro|
|00001520| 75 74 69 6e 65 20 4d 79 | 53 65 74 54 69 6d 65 72 |utine My|SetTimer|
|00001530| 20 77 69 74 68 20 61 20 | 76 61 6c 75 65 20 69 66 | with a |value if|
|00001540| 20 74 69 63 6b 73 20 74 | 68 61 74 20 69 73 20 21 | ticks t|hat is !|
|00001550| 3d 20 30 0d 09 2f 2f 20 | 49 66 20 74 68 65 20 74 |= 0..// |If the t|
|00001560| 69 6d 65 72 20 69 73 20 | 65 6e 61 62 6c 65 64 2c |imer is |enabled,|
|00001570| 20 69 74 20 4d 79 4d 6f | 64 61 6c 44 69 61 6c 6f | it MyMo|dalDialo|
|00001580| 67 20 63 68 65 63 6b 20 | 69 66 20 54 69 63 6b 43 |g check |if TickC|
|00001590| 6f 75 6e 74 28 29 20 3e | 20 74 69 63 6b 73 2e 20 |ount() >| ticks. |
|000015a0| 49 66 20 79 65 73 2c 0d | 09 2f 2f 20 74 69 63 6b |If yes,.|.// tick|
|000015b0| 73 20 69 73 20 72 65 73 | 65 74 20 74 6f 20 30 20 |s is res|et to 0 |
|000015c0| 61 6e 64 20 4d 79 4d 6f | 64 61 6c 44 69 61 6c 6f |and MyMo|dalDialo|
|000015d0| 67 20 72 65 74 75 72 6e | 73 20 77 69 74 68 20 69 |g return|s with i|
|000015e0| 74 65 6d 48 69 74 20 3d | 20 2d 31 2e 0d 0d 2f 2f |temHit =| -1...//|
|000015f0| 20 73 65 74 74 69 6e 67 | 20 66 72 61 6d 65 73 0d | setting| frames.|
|00001600| 0d 76 6f 69 64 20 4d 79 | 53 65 74 46 72 61 6d 65 |.void My|SetFrame|
|00001610| 28 44 69 61 6c 6f 67 44 | 61 74 61 2a 20 64 6c 67 |(DialogD|ata* dlg|
|00001620| 2c 20 52 65 63 74 2a 20 | 63 6f 6e 73 74 20 72 2c |, Rect* |const r,|
|00001630| 20 73 68 6f 72 74 20 69 | 6e 64 65 78 29 3b 0d 09 | short i|ndex);..|
|00001640| 2f 2f 20 53 65 74 73 20 | 61 20 66 72 61 6d 65 20 |// Sets |a frame |
|00001650| 74 68 61 74 20 6d 75 73 | 74 20 62 65 20 64 72 61 |that mus|t be dra|
|00001660| 77 6e 20 77 68 65 6e 65 | 76 65 72 20 74 68 65 20 |wn whene|ver the |
|00001670| 64 69 61 6c 6f 67 20 62 | 6f 78 20 69 73 20 75 70 |dialog b|ox is up|
|00001680| 64 61 74 65 64 0d 09 2f | 2f 20 53 65 74 20 72 20 |dated../|/ Set r |
|00001690| 74 6f 20 6e 69 6c 20 69 | 66 20 79 6f 75 20 77 61 |to nil i|f you wa|
|000016a0| 6e 74 20 74 6f 20 63 6c | 65 61 72 20 61 20 66 72 |nt to cl|ear a fr|
|000016b0| 61 6d 65 0d 09 2f 2f 20 | 54 68 65 72 65 20 61 72 |ame..// |There ar|
|000016c0| 65 20 75 70 20 74 6f 20 | 34 20 66 72 61 6d 65 73 |e up to |4 frames|
|000016d0| 2e 20 45 61 63 68 20 69 | 73 20 69 64 65 6e 74 69 |. Each i|s identi|
|000016e0| 66 69 65 64 20 62 79 20 | 69 74 73 20 69 6e 64 65 |fied by |its inde|
|000016f0| 78 20 28 30 2e 2e 33 29 | 0d 0d 2f 2f 20 61 70 70 |x (0..3)|..// app|
|00001700| 65 6e 64 69 6e 67 20 61 | 6e 64 20 72 65 6d 6f 76 |ending a|nd remov|
|00001710| 69 6e 67 20 44 49 54 4c | 73 0d 0d 76 6f 69 64 20 |ing DITL|s..void |
|00001720| 4d 79 41 70 70 65 6e 64 | 44 49 54 4c 28 44 69 61 |MyAppend|DITL(Dia|
|00001730| 6c 6f 67 44 61 74 61 2a | 20 64 6c 67 2c 20 73 68 |logData*| dlg, sh|
|00001740| 6f 72 74 20 72 65 73 49 | 44 29 3b 0d 09 2f 2f 20 |ort resI|D);..// |
|00001750| 61 70 70 65 6e 73 20 44 | 49 54 4c 20 6f 66 20 67 |appens D|ITL of g|
|00001760| 69 76 65 6e 20 72 65 73 | 2d 69 64 20 74 6f 20 64 |iven res|-id to d|
|00001770| 69 61 6c 6f 67 0d 0d 76 | 6f 69 64 20 4d 79 53 68 |ialog..v|oid MySh|
|00001780| 6f 72 74 65 6e 44 49 54 | 4c 28 44 69 61 6c 6f 67 |ortenDIT|L(Dialog|
|00001790| 44 61 74 61 2a 20 64 6c | 67 2c 20 73 68 6f 72 74 |Data* dl|g, short|
|000017a0| 20 6e 72 49 74 65 6d 73 | 29 3b 0d 09 2f 2f 20 72 | nrItems|);..// r|
|000017b0| 65 6d 6f 76 65 73 20 61 | 20 67 69 76 65 6e 20 6e |emoves a| given n|
|000017c0| 75 6d 62 65 72 20 6f 66 | 20 69 74 65 6d 73 20 66 |umber of| items f|
|000017d0| 72 6f 6d 20 64 6c 67 0d | 0d 2f 2f 20 61 6c 65 72 |rom dlg.|.// aler|
|000017e0| 74 20 62 6f 78 65 73 0d | 0d 73 68 6f 72 74 20 4d |t boxes.|.short M|
|000017f0| 79 41 6c 65 72 74 28 73 | 68 6f 72 74 20 72 65 73 |yAlert(s|hort res|
|00001800| 49 44 29 3b 0d 09 2f 2f | 20 73 68 6f 77 73 20 61 |ID);..//| shows a|
|00001810| 20 67 69 76 65 6e 20 61 | 6c 65 72 74 20 62 6f 78 | given a|lert box|
|00001820| 2c 20 72 65 74 75 72 6e | 73 20 74 68 65 20 63 6c |, return|s the cl|
|00001830| 69 63 6b 65 64 20 69 74 | 65 6d 0d 09 2f 2f 20 72 |icked it|em..// r|
|00001840| 65 73 49 44 3a 20 74 68 | 65 20 72 65 73 20 49 44 |esID: th|e res ID|
|00001850| 20 6f 66 20 61 20 44 4c | 4f 47 0d 0d 73 68 6f 72 | of a DL|OG..shor|
|00001860| 74 20 4d 79 50 6f 73 69 | 74 69 6f 6e 65 64 41 6c |t MyPosi|tionedAl|
|00001870| 65 72 74 28 73 68 6f 72 | 74 20 72 65 73 49 44 2c |ert(shor|t resID,|
|00001880| 20 52 65 63 74 2a 20 63 | 6f 6e 73 74 20 70 6f 73 | Rect* c|onst pos|
|00001890| 69 74 69 6f 6e 29 3b 0d | 09 2f 2f 20 73 61 6d 65 |ition);.|.// same|
|000018a0| 20 61 73 20 4d 79 41 6c | 65 72 74 2c 20 62 75 74 | as MyAl|ert, but|
|000018b0| 20 61 6c 6c 6f 77 73 20 | 73 65 74 74 69 6e 67 20 | allows |setting |
|000018c0| 61 6e 64 20 73 74 6f 72 | 69 6e 67 20 6f 66 20 77 |and stor|ing of w|
|000018d0| 69 6e 64 6f 77 20 70 6f | 73 69 74 69 6f 6e 0d 09 |indow po|sition..|
|000018e0| 2f 2f 20 70 6f 73 69 74 | 69 6f 6e 3a 20 6f 6e 20 |// posit|ion: on |
|000018f0| 65 6e 74 72 79 3a 09 74 | 68 65 20 70 6f 73 69 74 |entry:.t|he posit|
|00001900| 69 6f 6e 20 6f 66 20 74 | 68 65 20 61 6c 65 72 74 |ion of t|he alert|
|00001910| 20 77 69 6e 64 6f 77 20 | 69 6e 20 67 6c 6f 62 61 | window |in globa|
|00001920| 6c 20 63 6f 6f 72 64 2e | 20 6f 72 20 7b 30 2c 30 |l coord.| or {0,0|
|00001930| 2c 30 2c 30 7d 0d 09 2f | 2f 09 09 09 09 09 09 66 |,0,0}../|/......f|
|00001940| 6f 72 20 64 65 66 61 75 | 6c 74 20 70 6f 73 69 74 |or defau|lt posit|
|00001950| 69 6f 6e 0d 09 2f 2f 09 | 09 09 20 6f 6e 20 65 78 |ion..//.|.. on ex|
|00001960| 69 74 3a 09 74 68 65 20 | 6c 61 73 74 20 70 6f 73 |it:.the |last pos|
|00001970| 69 74 69 6f 6e 20 6f 66 | 20 74 68 65 20 61 6c 65 |ition of| the ale|
|00001980| 72 74 20 77 69 6e 64 6f | 77 0d 0d 0d 0d 2f 2f 20 |rt windo|w....// |
|00001990| 6d 69 73 63 65 6c 6c 61 | 6e 65 6f 75 73 20 75 74 |miscella|neous ut|
|000019a0| 69 6c 69 74 69 65 73 3a | 0d 0d 76 6f 69 64 20 41 |ilities:|..void A|
|000019b0| 64 64 49 74 65 6d 54 6f | 4d 65 6e 75 28 4d 65 6e |ddItemTo|Menu(Men|
|000019c0| 75 48 61 6e 64 6c 65 20 | 6d 65 6e 75 2c 20 53 74 |uHandle |menu, St|
|000019d0| 72 32 35 35 20 6e 61 6d | 65 29 3b 0d 09 2f 2f 20 |r255 nam|e);..// |
|000019e0| 61 64 64 73 20 61 6e 20 | 69 74 65 6d 20 77 69 74 |adds an |item wit|
|000019f0| 68 20 74 68 65 20 67 69 | 76 65 6e 20 6e 61 6d 65 |h the gi|ven name|
|00001a00| 20 74 6f 20 74 68 65 20 | 67 69 76 65 6e 20 6d 65 | to the |given me|
|00001a10| 6e 75 0d 09 2f 2f 20 6d | 61 6b 65 73 20 73 75 72 |nu..// m|akes sur|
|00001a20| 65 20 74 68 61 74 20 74 | 68 65 20 6e 61 6d 65 20 |e that t|he name |
|00001a30| 63 6f 6e 74 61 69 6e 73 | 20 6e 6f 20 69 6c 6c 65 |contains| no ille|
|00001a40| 67 61 6c 20 63 68 61 72 | 61 63 74 65 72 73 20 74 |gal char|acters t|
|00001a50| 68 61 74 20 77 6f 75 6c | 64 20 6d 65 73 73 20 75 |hat woul|d mess u|
|00001a60| 70 20 74 68 65 20 6d 65 | 6e 75 0d 0d 64 6f 75 62 |p the me|nu..doub|
|00001a70| 6c 65 20 52 6f 75 6e 64 | 44 6f 75 62 6c 65 28 64 |le Round|Double(d|
|00001a80| 6f 75 62 6c 65 20 78 29 | 3b 0d 09 2f 2f 20 72 6f |ouble x)|;..// ro|
|00001a90| 75 6e 64 73 20 78 20 74 | 6f 20 6e 65 78 74 20 69 |unds x t|o next i|
|00001aa0| 6e 74 65 67 65 72 0d 0d | 0d 2f 2f 20 77 69 6e 64 |nteger..|.// wind|
|00001ab0| 6f 77 20 68 61 6e 64 6c | 69 6e 67 3a 0d 0d 2f 2f |ow handl|ing:..//|
|00001ac0| 20 74 68 69 73 20 75 74 | 69 6c 69 74 79 20 70 61 | this ut|ility pa|
|00001ad0| 63 6b 61 67 65 20 69 73 | 20 61 62 6c 65 20 74 6f |ckage is| able to|
|00001ae0| 20 68 61 6e 64 6c 65 20 | 73 65 76 65 72 61 6c 20 | handle |several |
|00001af0| 77 69 6e 64 6f 77 73 20 | 61 74 20 74 68 65 20 73 |windows |at the s|
|00001b00| 61 6d 65 20 74 69 6d 65 | 2e 0d 2f 2f 20 54 68 69 |ame time|..// Thi|
|00001b10| 73 20 69 73 20 6f 6e 6c | 79 20 70 6f 73 73 69 62 |s is onl|y possib|
|00001b20| 6c 65 20 69 66 20 69 74 | 20 68 61 73 20 61 20 6c |le if it| has a l|
|00001b30| 69 73 74 20 6f 66 20 69 | 74 73 20 77 69 6e 64 6f |ist of i|ts windo|
|00001b40| 77 73 20 61 6e 64 20 69 | 66 20 69 74 20 6b 6e 6f |ws and i|f it kno|
|00001b50| 77 73 0d 2f 2f 20 68 6f | 77 20 74 6f 20 68 61 6e |ws.// ho|w to han|
|00001b60| 64 6c 65 20 75 70 64 61 | 74 65 20 61 6e 64 20 61 |dle upda|te and a|
|00001b70| 63 74 76 61 74 65 2f 64 | 65 61 63 74 69 76 61 74 |ctvate/d|eactivat|
|00001b80| 65 20 65 76 65 6e 74 73 | 20 66 6f 72 20 65 61 63 |e events| for eac|
|00001b90| 68 20 77 69 6e 64 6f 77 | 2e 0d 2f 2f 20 46 6f 72 |h window|..// For|
|00001ba0| 20 74 68 69 73 20 70 75 | 72 70 6f 73 65 2c 20 65 | this pu|rpose, e|
|00001bb0| 61 63 68 20 77 69 6e 64 | 6f 77 20 74 68 61 74 20 |ach wind|ow that |
|00001bc0| 74 68 65 20 6d 6f 64 75 | 6c 65 20 63 72 65 61 74 |the modu|le creat|
|00001bd0| 65 73 20 6d 75 73 74 20 | 62 65 20 72 65 67 69 73 |es must |be regis|
|00001be0| 74 65 72 65 64 20 0d 2f | 2f 20 62 79 20 63 61 6c |tered ./|/ by cal|
|00001bf0| 6c 69 6e 67 20 52 65 67 | 69 73 74 65 72 57 69 6e |ling Reg|isterWin|
|00001c00| 64 6f 77 2f 55 6e 72 65 | 67 69 73 74 65 72 57 69 |dow/Unre|gisterWi|
|00001c10| 6e 64 6f 77 0d 0d 74 79 | 70 65 64 65 66 20 42 6f |ndow..ty|pedef Bo|
|00001c20| 6f 6c 65 61 6e 20 28 2a | 57 69 6e 64 6f 77 48 61 |olean (*|WindowHa|
|00001c30| 6e 64 6c 65 72 29 28 6c | 6f 6e 67 20 6d 65 73 73 |ndler)(l|ong mess|
|00001c40| 61 67 65 2c 20 76 6f 69 | 64 2a 20 6d 2c 20 76 6f |age, voi|d* m, vo|
|00001c50| 69 64 2a 20 70 61 72 61 | 6d 29 3b 0d 09 2f 2f 20 |id* para|m);..// |
|00001c60| 61 20 72 6f 75 74 69 6e | 65 20 66 6f 72 20 68 61 |a routin|e for ha|
|00001c70| 6e 64 6c 69 6e 67 20 74 | 68 65 20 77 69 6e 64 6f |ndling t|he windo|
|00001c80| 77 2e 0d 09 2f 2f 20 6d | 65 73 73 61 67 65 20 74 |w...// m|essage t|
|00001c90| 65 6c 6c 73 20 79 6f 75 | 20 77 68 61 74 20 74 68 |ells you| what th|
|00001ca0| 65 20 72 6f 75 74 69 6e | 65 20 73 68 6f 75 6c 64 |e routin|e should|
|00001cb0| 20 64 6f 2e 20 6d 20 64 | 65 70 65 6e 64 73 20 6f | do. m d|epends o|
|00001cc0| 6e 20 6d 65 73 73 61 67 | 65 2e 0d 09 2f 2f 20 70 |n messag|e...// p|
|00001cd0| 61 72 61 6d 20 69 73 20 | 74 68 65 20 70 61 72 61 |aram is |the para|
|00001ce0| 6d 65 74 65 72 20 70 61 | 73 73 65 64 20 74 6f 20 |meter pa|ssed to |
|00001cf0| 52 65 67 69 73 74 65 72 | 57 69 6e 64 6f 77 2e 0d |Register|Window..|
|00001d00| 09 2f 2f 20 54 68 65 20 | 72 6f 75 74 69 6e 65 20 |.// The |routine |
|00001d10| 6d 75 73 74 20 72 65 74 | 75 72 6e 20 66 61 6c 73 |must ret|urn fals|
|00001d20| 65 20 69 66 20 69 74 20 | 64 6f 65 73 20 6e 6f 74 |e if it |does not|
|00001d30| 20 72 65 63 6f 67 6e 69 | 7a 65 20 6f 72 20 68 61 | recogni|ze or ha|
|00001d40| 6e 64 6c 65 20 61 20 67 | 69 76 65 6e 20 6d 65 73 |ndle a g|iven mes|
|00001d50| 73 61 67 65 2e 0d 09 2f | 2f 20 70 72 65 73 65 6e |sage.../|/ presen|
|00001d60| 74 6c 79 20 75 73 65 64 | 20 6d 65 73 73 61 67 65 |tly used| message|
|00001d70| 73 3a 0d 09 2f 2f 09 27 | 65 76 6e 74 27 3a 09 48 |s:..//.'|evnt':.H|
|00001d80| 61 6e 64 6c 65 20 61 20 | 77 69 6e 64 6f 77 20 72 |andle a |window r|
|00001d90| 65 6c 61 74 65 64 20 65 | 76 65 6e 74 2e 20 6d 20 |elated e|vent. m |
|00001da0| 70 6f 69 6e 74 73 20 74 | 6f 20 74 68 65 20 65 76 |points t|o the ev|
|00001db0| 65 6e 74 20 72 65 63 6f | 72 64 2e 0d 09 2f 2f 09 |ent reco|rd...//.|
|00001dc0| 09 09 52 65 74 75 72 6e | 20 74 72 75 65 20 69 66 |..Return| true if|
|00001dd0| 20 74 68 65 20 65 76 65 | 6e 74 20 6c 6f 6f 70 20 | the eve|nt loop |
|00001de0| 73 68 6f 75 6c 64 20 65 | 78 69 74 2c 20 66 61 6c |should e|xit, fal|
|00001df0| 73 65 20 6f 74 68 65 72 | 77 69 73 65 2e 0d 09 2f |se other|wise.../|
|00001e00| 2f 20 20 27 67 72 77 31 | 27 3a 09 43 61 6c 6c 65 |/ 'grw1|':.Calle|
|00001e10| 64 20 77 68 65 6e 20 74 | 68 65 20 67 72 6f 77 20 |d when t|he grow |
|00001e20| 62 75 74 74 6f 6e 20 77 | 61 73 20 63 61 6c 6c 65 |button w|as calle|
|00001e30| 64 2e 20 6d 20 70 6f 69 | 6e 74 73 20 74 6f 20 61 |d. m poi|nts to a|
|00001e40| 20 52 65 63 74 2e 0d 09 | 2f 2f 09 09 09 73 65 74 | Rect...|//...set|
|00001e50| 20 28 2a 6d 29 2e 74 6f | 70 2f 6c 65 66 74 20 74 | (*m).to|p/left t|
|00001e60| 6f 20 74 68 65 20 6d 69 | 6e 69 6d 75 6d 20 73 69 |o the mi|nimum si|
|00001e70| 7a 65 20 6f 66 20 74 68 | 65 20 77 69 6e 64 6f 77 |ze of th|e window|
|00001e80| 2c 20 0d 09 2f 2f 09 09 | 09 28 2a 6d 29 2e 62 6f |, ..//..|.(*m).bo|
|00001e90| 74 2f 72 69 67 68 74 20 | 74 6f 20 69 74 73 20 6d |t/right |to its m|
|00001ea0| 61 78 69 6d 75 6d 20 73 | 69 7a 65 20 61 6e 64 20 |aximum s|ize and |
|00001eb0| 72 65 74 75 72 6e 20 74 | 72 75 65 2e 20 49 66 20 |return t|rue. If |
|00001ec0| 74 68 65 20 77 69 6e 64 | 6f 77 0d 09 2f 2f 09 09 |the wind|ow..//..|
|00001ed0| 09 63 61 6e 6e 6f 74 20 | 62 65 20 67 72 6f 77 6e |.cannot |be grown|
|00001ee0| 2c 20 72 65 74 75 72 6e | 20 66 61 6c 73 65 2e 0d |, return| false..|
|00001ef0| 09 2f 2f 09 27 67 72 77 | 32 27 3a 09 43 61 6c 6c |.//.'grw|2':.Call|
|00001f00| 65 64 20 77 68 65 6e 20 | 74 68 65 20 77 69 6e 64 |ed when |the wind|
|00001f10| 6f 77 20 68 61 73 20 62 | 65 65 6e 20 72 65 73 69 |ow has b|een resi|
|00001f20| 7a 65 64 2e 0d 09 2f 2f | 09 27 6d 65 6e 75 27 3a |zed...//|.'menu':|
|00001f30| 09 43 61 6c 6c 65 64 20 | 61 66 74 65 72 20 63 6c |.Called |after cl|
|00001f40| 69 63 6b 20 69 6e 74 6f | 20 6d 65 6e 75 2e 20 6d |ick into| menu. m|
|00001f50| 20 70 6f 69 6e 74 73 20 | 74 6f 20 74 68 65 20 6c | points |to the l|
|00001f60| 6f 6e 67 20 76 61 6c 75 | 65 20 72 65 74 75 72 6e |ong valu|e return|
|00001f70| 65 64 20 62 79 20 4d 65 | 6e 75 53 65 6c 63 74 0d |ed by Me|nuSelct.|
|00001f80| 09 2f 2f 09 09 09 49 66 | 20 69 6d 70 6c 65 6d 65 |.//...If| impleme|
|00001f90| 6e 74 65 64 2c 20 79 6f | 75 72 20 68 61 6e 64 6c |nted, yo|ur handl|
|00001fa0| 65 72 20 73 68 6f 75 6c | 64 20 72 65 74 75 72 6e |er shoul|d return|
|00001fb0| 20 74 72 75 65 20 69 66 | 20 77 65 20 73 68 6f 75 | true if| we shou|
|00001fc0| 6c 64 0d 09 2f 2f 09 09 | 09 65 78 69 74 20 74 68 |ld..//..|.exit th|
|00001fd0| 65 20 65 76 65 6e 74 20 | 6c 6f 6f 70 2e 0d 09 2f |e event |loop.../|
|00001fe0| 2f 20 59 6f 75 72 20 57 | 69 6e 64 6f 77 48 61 6e |/ Your W|indowHan|
|00001ff0| 64 6c 65 72 20 6d 75 73 | 74 20 69 6d 70 6c 65 6d |dler mus|t implem|
|00002000| 65 6e 74 20 74 68 65 20 | 27 65 76 6e 74 27 20 6d |ent the |'evnt' m|
|00002010| 65 73 73 61 67 65 2c 20 | 61 6c 6c 20 6f 74 68 65 |essage, |all othe|
|00002020| 72 20 6d 65 73 73 61 67 | 65 73 20 61 72 65 0d 09 |r messag|es are..|
|00002030| 2f 2f 20 6f 70 74 69 6f | 6e 61 6c 2e 20 49 66 20 |// optio|nal. If |
|00002040| 79 6f 75 20 64 6f 20 6e | 6f 74 20 68 61 6e 64 6c |you do n|ot handl|
|00002050| 65 20 61 20 6d 65 73 73 | 61 67 65 2c 20 72 65 74 |e a mess|age, ret|
|00002060| 75 72 6e 20 66 61 6c 73 | 65 2e 0d 0d 0d 76 6f 69 |urn fals|e....voi|
|00002070| 64 20 52 65 67 69 73 74 | 65 72 57 69 6e 64 6f 77 |d Regist|erWindow|
|00002080| 28 57 69 6e 64 6f 77 50 | 74 72 20 77 69 6e 64 6f |(WindowP|tr windo|
|00002090| 77 2c 20 57 69 6e 64 6f | 77 48 61 6e 64 6c 65 72 |w, Windo|wHandler|
|000020a0| 20 68 61 6e 64 6c 65 72 | 2c 20 76 6f 69 64 2a 20 | handler|, void* |
|000020b0| 70 61 72 61 6d 29 3b 0d | 09 2f 2f 20 72 65 67 69 |param);.|.// regi|
|000020c0| 73 74 65 72 20 61 20 70 | 72 69 76 61 74 65 20 77 |ster a p|rivate w|
|000020d0| 69 6e 64 6f 77 20 6f 66 | 20 74 68 69 73 20 6d 6f |indow of| this mo|
|000020e0| 64 75 6c 65 0d 09 2f 2f | 20 77 69 6e 64 6f 77 3a |dule..//| window:|
|000020f0| 20 74 68 65 20 77 69 6e | 64 6f 77 20 70 74 72 20 | the win|dow ptr |
|00002100| 74 6f 20 69 74 0d 09 2f | 2f 20 68 61 6e 64 6c 65 |to it../|/ handle|
|00002110| 72 3a 20 63 61 6c 6c 65 | 64 20 66 6f 72 20 68 61 |r: calle|d for ha|
|00002120| 6e 64 6c 69 6e 67 20 77 | 69 6e 64 6f 77 20 72 65 |ndling w|indow re|
|00002130| 6c 61 74 65 64 20 65 76 | 65 6e 74 73 2c 20 6d 75 |lated ev|ents, mu|
|00002140| 73 74 20 61 74 20 6c 65 | 61 73 74 20 69 6d 70 6c |st at le|ast impl|
|00002150| 65 6d 65 6e 74 20 75 70 | 64 61 74 65 20 65 76 65 |ement up|date eve|
|00002160| 6e 74 73 0d 09 2f 2f 20 | 70 61 72 61 6d 3a 20 70 |nts..// |param: p|
|00002170| 61 72 61 6d 65 74 65 72 | 20 70 61 73 73 65 64 20 |arameter| passed |
|00002180| 65 61 63 68 20 74 69 6d | 65 20 68 61 6e 64 6c 65 |each tim|e handle|
|00002190| 72 20 69 73 20 63 61 6c | 6c 65 64 0d 0d 76 6f 69 |r is cal|led..voi|
|000021a0| 64 20 57 69 6e 64 6f 77 | 43 61 6e 47 72 6f 77 28 |d Window|CanGrow(|
|000021b0| 57 69 6e 64 6f 77 50 74 | 72 20 77 69 6e 64 6f 77 |WindowPt|r window|
|000021c0| 2c 20 52 65 63 74 2a 20 | 63 6f 6e 73 74 20 67 72 |, Rect* |const gr|
|000021d0| 6f 77 52 65 63 74 29 3b | 0d 09 2f 2f 20 69 66 20 |owRect);|..// if |
|000021e0| 61 20 77 69 6e 64 6f 77 | 20 63 61 6e 20 62 65 20 |a window| can be |
|000021f0| 67 72 6f 77 2c 20 63 61 | 6c 6c 20 74 68 69 73 20 |grow, ca|ll this |
|00002200| 72 6f 75 74 69 6e 65 20 | 61 66 74 65 72 20 68 61 |routine |after ha|
|00002210| 76 69 6e 67 20 63 61 6c | 6c 65 64 20 52 65 67 69 |ving cal|led Regi|
|00002220| 73 74 65 72 57 69 6e 64 | 6f 77 0d 09 2f 2f 20 67 |sterWind|ow..// g|
|00002230| 72 6f 77 52 65 63 74 20 | 6d 75 73 74 20 63 6f 6e |rowRect |must con|
|00002240| 74 61 69 6e 20 74 68 65 | 20 6d 69 6e 69 6d 75 6d |tain the| minimum|
|00002250| 20 73 69 7a 65 20 6f 66 | 20 74 68 65 20 77 69 6e | size of| the win|
|00002260| 64 6f 77 20 69 6e 20 74 | 6f 70 2f 6c 65 66 74 20 |dow in t|op/left |
|00002270| 61 6e 64 20 74 68 65 0d | 09 2f 2f 20 6d 61 78 69 |and the.|.// maxi|
|00002280| 6d 75 6d 20 73 69 7a 65 | 20 69 6e 20 62 6f 74 74 |mum size| in bott|
|00002290| 6f 6d 2f 72 69 67 68 74 | 0d 0d 76 6f 69 64 20 55 |om/right|..void U|
|000022a0| 6e 72 65 67 69 73 74 65 | 72 57 69 6e 64 6f 77 28 |nregiste|rWindow(|
|000022b0| 57 69 6e 64 6f 77 50 74 | 72 20 77 69 6e 64 6f 77 |WindowPt|r window|
|000022c0| 29 3b 0d 09 2f 2f 20 75 | 6e 72 65 67 69 73 74 65 |);..// u|nregiste|
|000022d0| 72 20 61 20 70 72 69 76 | 61 74 65 20 77 69 6e 64 |r a priv|ate wind|
|000022e0| 6f 77 20 70 72 65 76 69 | 6f 75 73 6c 79 20 72 65 |ow previ|ously re|
|000022f0| 67 69 73 74 65 72 65 64 | 20 62 79 20 52 65 67 69 |gistered| by Regi|
|00002300| 73 74 65 72 57 69 6e 64 | 6f 77 0d 09 2f 2f 20 49 |sterWind|ow..// I|
|00002310| 66 20 74 68 65 20 77 69 | 6e 64 6f 77 20 68 61 6e |f the wi|ndow han|
|00002320| 64 6c 65 72 20 72 6f 75 | 74 69 6e 65 20 69 6d 70 |dler rou|tine imp|
|00002330| 6c 65 6d 65 6e 74 73 20 | 74 68 65 20 27 72 65 63 |lements |the 'rec|
|00002340| 74 27 20 6d 65 74 68 6f | 64 2c 20 74 68 65 20 72 |t' metho|d, the r|
|00002350| 65 63 74 61 6e 67 6c 65 | 20 77 69 6c 6c 0d 09 2f |ectangle| will../|
|00002360| 2f 20 62 65 20 75 70 64 | 61 74 65 64 20 74 6f 20 |/ be upd|ated to |
|00002370| 74 68 65 20 6c 61 73 74 | 20 70 6f 73 69 74 69 6f |the last| positio|
|00002380| 6e 20 6f 66 20 74 68 65 | 20 77 69 6e 64 6f 77 0d |n of the| window.|
|00002390| 09 2f 2f 20 55 6e 72 65 | 67 69 73 74 65 72 57 69 |.// Unre|gisterWi|
|000023a0| 6e 64 6f 77 20 6d 75 73 | 74 20 62 65 20 63 61 6c |ndow mus|t be cal|
|000023b0| 6c 65 64 20 62 65 66 6f | 72 65 20 74 68 65 20 77 |led befo|re the w|
|000023c0| 69 6e 64 6f 77 20 69 73 | 20 64 65 61 6c 6c 6f 63 |indow is| dealloc|
|000023d0| 61 74 65 64 20 0d 0d 76 | 6f 69 64 20 45 76 65 6e |ated ..v|oid Even|
|000023e0| 74 4c 6f 6f 70 28 76 6f | 69 64 29 3b 0d 09 2f 2f |tLoop(vo|id);..//|
|000023f0| 20 47 65 74 73 20 65 76 | 65 6e 74 73 20 61 6e 64 | Gets ev|ents and|
|00002400| 20 68 61 6e 64 6c 65 73 | 20 74 68 65 6d 20 75 6e | handles| them un|
|00002410| 74 69 6c 20 61 20 77 69 | 6e 64 6f 77 20 68 61 6e |til a wi|ndow han|
|00002420| 64 6c 65 72 20 72 65 74 | 75 72 6e 73 20 74 72 75 |dler ret|urns tru|
|00002430| 65 0d 0d 76 6f 69 64 20 | 47 65 74 47 6c 6f 62 61 |e..void |GetGloba|
|00002440| 6c 57 69 6e 64 6f 77 52 | 65 63 74 28 57 69 6e 64 |lWindowR|ect(Wind|
|00002450| 6f 77 50 74 72 20 77 69 | 6e 64 6f 77 2c 20 52 65 |owPtr wi|ndow, Re|
|00002460| 63 74 2a 20 63 6f 6e 73 | 74 20 72 29 3b 0d 09 2f |ct* cons|t r);../|
|00002470| 2f 20 72 65 74 75 72 6e | 73 20 74 68 65 20 77 69 |/ return|s the wi|
|00002480| 6e 64 6f 77 27 73 20 72 | 65 63 74 20 69 6e 20 67 |ndow's r|ect in g|
|00002490| 6c 6f 62 61 6c 20 63 6f | 6f 72 64 69 6e 61 74 65 |lobal co|ordinate|
|000024a0| 73 0d 0d 76 6f 69 64 20 | 53 65 74 47 6c 6f 62 61 |s..void |SetGloba|
|000024b0| 6c 57 69 6e 64 6f 77 52 | 65 63 74 28 57 69 6e 64 |lWindowR|ect(Wind|
|000024c0| 6f 77 50 74 72 20 77 69 | 6e 64 6f 77 2c 20 52 65 |owPtr wi|ndow, Re|
|000024d0| 63 74 2a 20 63 6f 6e 73 | 74 20 72 29 3b 0d 09 2f |ct* cons|t r);../|
|000024e0| 2f 20 6d 6f 76 65 73 20 | 74 68 65 20 77 69 6e 64 |/ moves |the wind|
|000024f0| 6f 77 20 74 6f 20 74 68 | 65 20 67 69 76 65 6e 20 |ow to th|e given |
|00002500| 67 6c 6f 62 61 6c 20 63 | 6f 6f 72 64 69 6e 61 74 |global c|oordinat|
|00002510| 65 73 0d 09 0d 0d 0d 23 | 65 6e 64 69 66 0d 00 00 |es.....#|endif...|
|00002520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002580| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00002590| 79 74 65 73 3b 0d 09 73 | 68 6f 72 74 09 09 09 09 |ytes;..s|hort....|
|000025a0| 09 09 09 69 42 61 6e 64 | 56 3b 0d 09 73 68 6f 72 |...iBand|V;..shor|
|000025b0| 11 4d 6f 64 75 6c 65 55 | 74 69 6c 69 74 69 65 73 |.ModuleU|tilities|
|000025c0| 2e 68 02 00 00 00 54 45 | 58 54 43 57 49 45 01 00 |.h....TE|XTCWIE..|
|000025d0| 00 00 54 45 58 54 43 57 | 49 45 01 00 00 00 00 80 |..TEXTCW|IE......|
|000025e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025f0| 00 00 ad 67 04 c1 00 00 | 24 9e 00 00 01 9a 53 63 |...g....|$.....Sc|
|00002600| 61 6c 65 3b 0d 09 53 49 | 6e 74 38 09 09 09 09 09 |ale;..SI|nt8.....|
|00002610| 09 09 62 55 6c 54 68 69 | 63 6b 3b 0d 09 53 49 6e |..bUlThi|ck;..SIn|
|00002620| 74 38 09 09 09 09 09 09 | 09 62 55 6c 4f 66 66 73 |t8......|.bUlOffs|
|00002630| 65 74 3b 0d 09 53 49 6e | 74 38 09 09 09 09 09 09 |et;..SIn|t8......|
|00002640| 09 62 55 6c 53 68 61 64 | 6f 77 3b 0d 09 54 53 63 |.bUlShad|ow;..TSc|
|00002650| 61 6e 09 09 09 09 09 09 | 09 73 63 61 6e 3b 0d 09 |an......|.scan;..|
|00002660| 53 49 6e 74 38 09 09 09 | 09 09 09 09 62 58 49 6e |SInt8...|....bXIn|
|00002670| 66 6f 58 3b 0d 7d 3b 0d | 74 79 70 65 64 65 66 20 |foX;.};.|typedef |
|00002680| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00002690| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026a0| 00 00 00 00 00 00 00 03 | 00 04 00 6f 00 18 03 3d |........|...o...=|
|000026b0| 02 77 00 6f 00 18 03 3d | 02 77 ad fc 12 29 00 00 |.w.o...=|.w...)..|
|000026c0| 03 96 00 00 03 a0 00 00 | 19 eb 01 4e 00 00 00 04 |........|...N....|
|000026d0| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|000026e0| 00 00 00 46 02 6a c2 8c | 23 fe 00 00 00 1c 00 46 |...F.j..|#......F|
|000026f0| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00002700| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00002710| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|00002720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+