home *** CD-ROM | disk | FTP | other *** search
/ AOL File Library: 2,801 to 2,900 / aol-file-protocol-4400-2801-to-2900.zip / AOLDLs / C++ Files Library / CModalDialog C++ Class / CModalDialogClass.v100.sit / CModalDialog Class / CModalDialog.cp next >
MacBinary  |  1995-10-11  |  6.5 KB  |  [TEXT/MPCC]

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
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert MS-DOS Code Page Info (other/dosCodePage) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Wed Oct 11 19:03:41 1995, modified Wed Oct 11 19:03:41 1995, creator 'MPCC', type ASCII, 5986 bytes "CModalDialog.cp" , at 0x17e2 410 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[MPCC]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0f 43 4d 6f 64 61 6c | 44 69 61 6c 6f 67 2e 63 |..CModal|Dialog.c|
|00000010| 70 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |p.......|........|
|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 4d 50 43 | 43 01 00 00 00 00 00 00 |.TEXTMPC|C.......|
|00000050| 00 00 00 00 00 17 62 00 | 00 01 9a ac a1 fd cd ac |......b.|........|
|00000060| a1 fd cd 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 ab 84 00 00 |........|........|
|00000080| 2f 2f 20 43 4d 6f 64 61 | 6c 44 69 61 6c 6f 67 2e |// CModa|lDialog.|
|00000090| 63 70 0d 2f 2f 20 20 20 | 20 20 43 6f 70 79 72 69 |cp.// | Copyri|
|000000a0| 67 68 74 20 a9 20 31 39 | 39 35 20 62 79 20 4d 69 |ght . 19|95 by Mi|
|000000b0| 63 68 61 65 6c 20 46 2e | 20 4b 61 6d 70 72 61 74 |chael F.| Kamprat|
|000000c0| 68 2c 20 41 6c 6c 20 72 | 69 67 68 74 73 20 72 65 |h, All r|ights re|
|000000d0| 73 65 72 76 65 64 2e 0d | 2f 2f 0d 2f 2f 20 43 6f |served..|//.// Co|
|000000e0| 6e 74 61 63 74 20 69 6e | 66 6f 72 6d 61 74 69 6f |ntact in|formatio|
|000000f0| 6e 3a 0d 2f 2f 20 20 20 | 20 20 6d 61 69 6c 74 6f |n:.// | mailto|
|00000100| 3a 6b 61 6d 70 72 61 74 | 40 6c 65 6f 6e 61 72 64 |:kamprat|@leonard|
|00000110| 6f 2e 6e 65 74 0d 2f 2f | 20 20 20 20 20 68 74 74 |o.net.//| htt|
|00000120| 70 3a 2f 2f 77 77 77 2e | 6c 65 6f 6e 61 72 64 6f |p://www.|leonardo|
|00000130| 2e 6e 65 74 2f 6b 61 6d | 70 72 61 74 68 0d 2f 2f |.net/kam|prath.//|
|00000140| 0d 2f 2f 20 4c 69 63 65 | 6e 73 65 3a 0d 2f 2f 20 |.// Lice|nse:.// |
|00000150| 20 20 20 20 54 68 69 73 | 20 63 6f 64 65 20 6d 61 | This| code ma|
|00000160| 79 20 62 65 20 66 72 65 | 65 6c 79 20 75 73 65 64 |y be fre|ely used|
|00000170| 20 69 6e 20 66 72 65 65 | 20 61 6e 64 20 73 68 61 | in free| and sha|
|00000180| 72 65 77 61 72 65 20 70 | 72 6f 64 75 63 74 73 2e |reware p|roducts.|
|00000190| 20 43 6f 6d 6d 65 72 63 | 69 61 6c 20 70 72 6f 64 | Commerc|ial prod|
|000001a0| 75 63 74 0d 2f 2f 20 20 | 20 20 20 75 73 65 72 73 |uct.// | users|
|000001b0| 20 6d 75 73 74 20 73 75 | 70 70 6c 79 20 6d 65 20 | must su|pply me |
|000001c0| 77 69 74 68 20 61 20 66 | 72 65 65 2c 20 66 75 6c |with a f|ree, ful|
|000001d0| 6c 79 20 6c 69 63 65 6e | 73 65 64 20 63 6f 70 79 |ly licen|sed copy|
|000001e0| 20 6f 66 20 74 68 65 20 | 70 72 6f 64 75 63 74 20 | of the |product |
|000001f0| 74 68 69 73 20 63 6f 64 | 65 20 69 73 0d 2f 2f 20 |this cod|e is.// |
|00000200| 20 20 20 20 75 73 65 64 | 20 69 6e 2e 20 49 6e 20 | used| in. In |
|00000210| 65 69 74 68 65 72 20 63 | 61 73 65 2c 20 75 73 65 |either c|ase, use|
|00000220| 72 73 20 73 68 6f 75 6c | 64 20 6e 6f 74 69 66 79 |rs shoul|d notify|
|00000230| 20 6d 65 20 6f 66 20 74 | 68 65 69 72 20 75 73 65 | me of t|heir use|
|00000240| 20 6f 66 20 74 68 69 73 | 20 63 6f 64 65 2e 0d 2f | of this| code../|
|00000250| 2f 0d 2f 2f 20 20 20 20 | 20 54 68 69 73 20 63 6f |/.// | This co|
|00000260| 64 65 20 6d 61 79 20 62 | 65 20 66 72 65 65 6c 79 |de may b|e freely|
|00000270| 20 64 69 73 74 72 69 62 | 75 74 65 64 20 69 6e 20 | distrib|uted in |
|00000280| 69 74 27 73 20 6e 6f 6e | 2d 6d 6f 64 69 66 69 65 |it's non|-modifie|
|00000290| 64 20 66 6f 72 6d 2e 20 | 49 74 27 73 20 6f 72 69 |d form. |It's ori|
|000002a0| 67 69 6e 61 6c 20 61 72 | 63 68 69 76 65 0d 2f 2f |ginal ar|chive.//|
|000002b0| 20 20 20 20 20 73 68 6f | 75 6c 64 20 62 65 20 6b | sho|uld be k|
|000002c0| 65 70 74 20 69 6e 74 61 | 63 74 2e 0d 2f 2f 0d 2f |ept inta|ct..//./|
|000002d0| 2f 20 56 65 72 73 69 6f | 6e 20 48 69 73 74 6f 72 |/ Versio|n Histor|
|000002e0| 79 3a 0d 2f 2f 20 20 20 | 20 20 76 31 2e 30 2e 30 |y:.// | v1.0.0|
|000002f0| 20 2d 20 49 6e 69 74 69 | 74 69 61 6c 20 72 65 6c | - Initi|tial rel|
|00000300| 65 61 73 65 2e 0d 2f 2f | 0d 0d 23 69 6e 63 6c 75 |ease..//|..#inclu|
|00000310| 64 65 20 22 43 4d 6f 64 | 61 6c 44 69 61 6c 6f 67 |de "CMod|alDialog|
|00000320| 2e 68 22 0d 0d 70 61 73 | 63 61 6c 20 42 6f 6f 6c |.h"..pas|cal Bool|
|00000330| 65 61 6e 09 43 4d 6f 64 | 61 6c 44 69 61 6c 6f 67 |ean.CMod|alDialog|
|00000340| 46 69 6c 74 65 72 28 09 | 44 69 61 6c 6f 67 50 74 |Filter(.|DialogPt|
|00000350| 72 20 74 68 65 44 6c 67 | 2c 0d 09 09 09 09 09 09 |r theDlg|,.......|
|00000360| 09 09 09 09 45 76 65 6e | 74 52 65 63 6f 72 64 20 |....Even|tRecord |
|00000370| 2a 74 68 65 45 76 65 6e | 74 2c 20 0d 09 09 09 09 |*theEven|t, .....|
|00000380| 09 09 09 09 09 09 73 68 | 6f 72 74 20 2a 69 74 65 |......sh|ort *ite|
|00000390| 6d 48 69 74 29 3b 0d 0d | 43 4d 6f 64 61 6c 44 69 |mHit);..|CModalDi|
|000003a0| 61 6c 6f 67 3a 3a 43 4d | 6f 64 61 6c 44 69 61 6c |alog::CM|odalDial|
|000003b0| 6f 67 28 20 09 73 68 6f | 72 74 09 72 65 73 49 44 |og( .sho|rt.resID|
|000003c0| 2c 0d 09 09 09 09 09 09 | 09 09 73 68 6f 72 74 09 |,.......|..short.|
|000003d0| 64 65 66 61 75 6c 74 49 | 44 2c 0d 09 09 09 09 09 |defaultI|D,......|
|000003e0| 09 09 09 73 68 6f 72 74 | 09 63 61 6e 63 65 6c 49 |...short|.cancelI|
|000003f0| 44 20 29 0d 09 3a 09 64 | 6c 6f 67 52 65 73 49 44 |D )..:.d|logResID|
|00000400| 28 20 72 65 73 49 44 20 | 29 2c 0d 09 09 64 65 66 |( resID |),...def|
|00000410| 61 75 6c 74 49 74 65 6d | 28 20 64 65 66 61 75 6c |aultItem|( defaul|
|00000420| 74 49 44 20 29 2c 0d 09 | 09 63 61 6e 63 65 6c 49 |tID ),..|.cancelI|
|00000430| 74 65 6d 28 20 63 61 6e | 63 65 6c 49 44 20 29 2c |tem( can|celID ),|
|00000440| 0d 09 09 73 68 6f 77 48 | 61 73 42 65 65 6e 43 61 |...showH|asBeenCa|
|00000450| 6c 6c 65 64 28 20 66 61 | 6c 73 65 20 29 0d 7b 0d |lled( fa|lse ).{.|
|00000460| 09 74 68 69 73 2d 3e 64 | 69 61 6c 6f 67 46 69 6c |.this->d|ialogFil|
|00000470| 74 65 72 55 50 50 20 3d | 20 4e 65 77 4d 6f 64 61 |terUPP =| NewModa|
|00000480| 6c 46 69 6c 74 65 72 50 | 72 6f 63 28 20 43 4d 6f |lFilterP|roc( CMo|
|00000490| 64 61 6c 44 69 61 6c 6f | 67 46 69 6c 74 65 72 20 |dalDialo|gFilter |
|000004a0| 29 3b 0d 09 74 68 69 73 | 2d 3e 74 68 65 44 69 61 |);..this|->theDia|
|000004b0| 6c 6f 67 20 3d 20 3a 3a | 47 65 74 4e 65 77 44 69 |log = ::|GetNewDi|
|000004c0| 61 6c 6f 67 28 72 65 73 | 49 44 2c 20 6e 69 6c 2c |alog(res|ID, nil,|
|000004d0| 20 28 57 69 6e 64 6f 77 | 50 74 72 29 2d 31 4c 20 | (Window|Ptr)-1L |
|000004e0| 29 3b 0d 09 53 65 74 57 | 52 65 66 43 6f 6e 28 20 |);..SetW|RefCon( |
|000004f0| 74 68 69 73 2d 3e 74 68 | 65 44 69 61 6c 6f 67 2c |this->th|eDialog,|
|00000500| 20 28 6c 6f 6e 67 29 74 | 68 69 73 20 29 3b 0d 7d | (long)t|his );.}|
|00000510| 0d 0d 43 4d 6f 64 61 6c | 44 69 61 6c 6f 67 3a 3a |..CModal|Dialog::|
|00000520| 7e 43 4d 6f 64 61 6c 44 | 69 61 6c 6f 67 28 29 0d |~CModalD|ialog().|
|00000530| 7b 0d 09 44 69 73 70 6f | 73 65 52 6f 75 74 69 6e |{..Dispo|seRoutin|
|00000540| 65 44 65 73 63 72 69 70 | 74 6f 72 28 28 55 6e 69 |eDescrip|tor((Uni|
|00000550| 76 65 72 73 61 6c 50 72 | 6f 63 50 74 72 29 74 68 |versalPr|ocPtr)th|
|00000560| 69 73 2d 3e 64 69 61 6c | 6f 67 46 69 6c 74 65 72 |is->dial|ogFilter|
|00000570| 55 50 50 29 3b 0d 09 3a | 3a 44 69 73 70 6f 73 65 |UPP);..:|:Dispose|
|00000580| 44 69 61 6c 6f 67 28 20 | 74 68 69 73 2d 3e 74 68 |Dialog( |this->th|
|00000590| 65 44 69 61 6c 6f 67 20 | 29 3b 0d 7d 0d 0d 76 6f |eDialog |);.}..vo|
|000005a0| 69 64 0d 43 4d 6f 64 61 | 6c 44 69 61 6c 6f 67 3a |id.CModa|lDialog:|
|000005b0| 3a 53 65 74 44 69 61 6c | 6f 67 50 6f 72 74 28 20 |:SetDial|ogPort( |
|000005c0| 76 6f 69 64 20 29 0d 7b | 0d 09 3a 3a 53 65 74 50 |void ).{|..::SetP|
|000005d0| 6f 72 74 28 20 74 68 69 | 73 2d 3e 74 68 65 44 69 |ort( thi|s->theDi|
|000005e0| 61 6c 6f 67 20 29 3b 0d | 7d 0d 76 6f 69 64 0d 43 |alog );.|}.void.C|
|000005f0| 4d 6f 64 61 6c 44 69 61 | 6c 6f 67 3a 3a 53 65 74 |ModalDia|log::Set|
|00000600| 44 65 66 61 75 6c 74 49 | 74 65 6d 28 20 73 68 6f |DefaultI|tem( sho|
|00000610| 72 74 20 6e 65 77 56 61 | 6c 20 29 0d 7b 0d 09 74 |rt newVa|l ).{..t|
|00000620| 68 69 73 2d 3e 49 6e 76 | 61 6c 69 64 61 74 65 44 |his->Inv|alidateD|
|00000630| 65 66 61 75 6c 74 52 65 | 63 74 28 29 3b 0d 09 74 |efaultRe|ct();..t|
|00000640| 68 69 73 2d 3e 64 65 66 | 61 75 6c 74 49 74 65 6d |his->def|aultItem|
|00000650| 20 3d 20 6e 65 77 56 61 | 6c 3b 0d 09 74 68 69 73 | = newVa|l;..this|
|00000660| 2d 3e 49 6e 76 61 6c 69 | 64 61 74 65 44 65 66 61 |->Invali|dateDefa|
|00000670| 75 6c 74 52 65 63 74 28 | 29 3b 0d 7d 0d 76 6f 69 |ultRect(|);.}.voi|
|00000680| 64 0d 43 4d 6f 64 61 6c | 44 69 61 6c 6f 67 3a 3a |d.CModal|Dialog::|
|00000690| 53 65 74 43 61 6e 63 65 | 6c 49 74 65 6d 28 20 73 |SetCance|lItem( s|
|000006a0| 68 6f 72 74 20 6e 65 77 | 56 61 6c 20 29 0d 7b 0d |hort new|Val ).{.|
|000006b0| 09 74 68 69 73 2d 3e 63 | 61 6e 63 65 6c 49 74 65 |.this->c|ancelIte|
|000006c0| 6d 20 3d 20 6e 65 77 56 | 61 6c 3b 0d 7d 0d 09 0d |m = newV|al;.}...|
|000006d0| 76 6f 69 64 0d 43 4d 6f | 64 61 6c 44 69 61 6c 6f |void.CMo|dalDialo|
|000006e0| 67 3a 3a 47 65 74 49 74 | 65 6d 49 6e 66 6f 28 20 |g::GetIt|emInfo( |
|000006f0| 73 68 6f 72 74 20 69 74 | 65 6d 2c 20 73 68 6f 72 |short it|em, shor|
|00000700| 74 2a 20 69 74 65 6d 54 | 79 70 65 2c 20 48 61 6e |t* itemT|ype, Han|
|00000710| 64 6c 65 2a 20 69 74 65 | 6d 48 61 6e 64 6c 65 2c |dle* ite|mHandle,|
|00000720| 20 52 65 63 74 2a 20 69 | 74 65 6d 52 65 63 74 20 | Rect* i|temRect |
|00000730| 29 0d 7b 0d 09 3a 3a 47 | 65 74 44 69 61 6c 6f 67 |).{..::G|etDialog|
|00000740| 49 74 65 6d 28 74 68 69 | 73 2d 3e 74 68 65 44 69 |Item(thi|s->theDi|
|00000750| 61 6c 6f 67 2c 20 69 74 | 65 6d 2c 69 74 65 6d 54 |alog, it|em,itemT|
|00000760| 79 70 65 2c 20 69 74 65 | 6d 48 61 6e 64 6c 65 2c |ype, ite|mHandle,|
|00000770| 69 74 65 6d 52 65 63 74 | 29 3b 0d 7d 0d 76 6f 69 |itemRect|);.}.voi|
|00000780| 64 0d 43 4d 6f 64 61 6c | 44 69 61 6c 6f 67 3a 3a |d.CModal|Dialog::|
|00000790| 53 65 74 49 74 65 6d 49 | 6e 66 6f 28 20 73 68 6f |SetItemI|nfo( sho|
|000007a0| 72 74 20 69 74 65 6d 2c | 20 73 68 6f 72 74 20 69 |rt item,| short i|
|000007b0| 74 65 6d 54 79 70 65 2c | 20 48 61 6e 64 6c 65 20 |temType,| Handle |
|000007c0| 69 74 65 6d 48 61 6e 64 | 6c 65 2c 20 52 65 63 74 |itemHand|le, Rect|
|000007d0| 2a 20 69 74 65 6d 52 65 | 63 74 20 29 0d 7b 0d 09 |* itemRe|ct ).{..|
|000007e0| 3a 3a 53 65 74 44 69 61 | 6c 6f 67 49 74 65 6d 28 |::SetDia|logItem(|
|000007f0| 74 68 69 73 2d 3e 74 68 | 65 44 69 61 6c 6f 67 2c |this->th|eDialog,|
|00000800| 20 69 74 65 6d 2c 69 74 | 65 6d 54 79 70 65 2c 20 | item,it|emType, |
|00000810| 69 74 65 6d 48 61 6e 64 | 6c 65 2c 69 74 65 6d 52 |itemHand|le,itemR|
|00000820| 65 63 74 29 3b 0d 7d 0d | 0d 76 6f 69 64 0d 43 4d |ect);.}.|.void.CM|
|00000830| 6f 64 61 6c 44 69 61 6c | 6f 67 3a 3a 46 72 61 6d |odalDial|og::Fram|
|00000840| 65 44 65 66 61 75 6c 74 | 42 75 74 74 6f 6e 28 76 |eDefault|Button(v|
|00000850| 6f 69 64 29 0d 7b 0d 47 | 72 61 66 50 74 72 09 09 |oid).{.G|rafPtr..|
|00000860| 09 73 61 76 65 50 6f 72 | 74 3b 0d 50 65 6e 53 74 |.savePor|t;.PenSt|
|00000870| 61 74 65 09 09 74 68 65 | 50 6e 53 74 61 74 65 3b |ate..the|PnState;|
|00000880| 0d 52 65 63 74 09 09 09 | 64 65 66 61 75 6c 74 52 |.Rect...|defaultR|
|00000890| 65 63 74 3b 0d 0d 09 74 | 68 69 73 2d 3e 47 65 74 |ect;...t|his->Get|
|000008a0| 44 65 66 61 75 6c 74 52 | 65 63 74 28 20 64 65 66 |DefaultR|ect( def|
|000008b0| 61 75 6c 74 52 65 63 74 | 20 29 3b 0d 09 0d 09 3a |aultRect| );....:|
|000008c0| 3a 47 65 74 50 6f 72 74 | 28 26 73 61 76 65 50 6f |:GetPort|(&savePo|
|000008d0| 72 74 29 3b 0d 09 3a 3a | 53 65 74 50 6f 72 74 28 |rt);..::|SetPort(|
|000008e0| 74 68 69 73 2d 3e 74 68 | 65 44 69 61 6c 6f 67 29 |this->th|eDialog)|
|000008f0| 3b 0d 09 3a 3a 47 65 74 | 50 65 6e 53 74 61 74 65 |;..::Get|PenState|
|00000900| 28 20 26 74 68 65 50 6e | 53 74 61 74 65 20 29 3b |( &thePn|State );|
|00000910| 0d 09 0d 09 3a 3a 50 65 | 6e 53 69 7a 65 28 33 2c |....::Pe|nSize(3,|
|00000920| 33 29 3b 0d 09 0d 09 3a | 3a 46 72 61 6d 65 52 6f |3);....:|:FrameRo|
|00000930| 75 6e 64 52 65 63 74 28 | 26 64 65 66 61 75 6c 74 |undRect(|&default|
|00000940| 52 65 63 74 2c 20 31 38 | 2c 20 31 38 29 3b 0d 09 |Rect, 18|, 18);..|
|00000950| 0d 09 3a 3a 53 65 74 50 | 65 6e 53 74 61 74 65 28 |..::SetP|enState(|
|00000960| 20 26 74 68 65 50 6e 53 | 74 61 74 65 20 29 3b 0d | &thePnS|tate );.|
|00000970| 09 3a 3a 53 65 74 50 6f | 72 74 28 73 61 76 65 50 |.::SetPo|rt(saveP|
|00000980| 6f 72 74 29 3b 0d 7d 0d | 0d 76 6f 69 64 0d 43 4d |ort);.}.|.void.CM|
|00000990| 6f 64 61 6c 44 69 61 6c | 6f 67 3a 3a 47 65 74 44 |odalDial|og::GetD|
|000009a0| 65 66 61 75 6c 74 52 65 | 63 74 28 20 52 65 63 74 |efaultRe|ct( Rect|
|000009b0| 26 20 74 68 65 52 65 63 | 74 20 29 0d 7b 0d 73 68 |& theRec|t ).{.sh|
|000009c0| 6f 72 74 09 09 09 69 74 | 65 6d 54 79 70 65 3b 0d |ort...it|emType;.|
|000009d0| 52 65 63 74 09 09 09 69 | 74 65 6d 52 65 63 74 3b |Rect...i|temRect;|
|000009e0| 0d 48 61 6e 64 6c 65 09 | 09 09 69 74 65 6d 48 61 |.Handle.|..itemHa|
|000009f0| 6e 64 6c 65 3b 0d 0d 09 | 3a 3a 47 65 74 44 69 61 |ndle;...|::GetDia|
|00000a00| 6c 6f 67 49 74 65 6d 28 | 20 74 68 69 73 2d 3e 74 |logItem(| this->t|
|00000a10| 68 65 44 69 61 6c 6f 67 | 2c 20 74 68 69 73 2d 3e |heDialog|, this->|
|00000a20| 64 65 66 61 75 6c 74 49 | 74 65 6d 2c 20 26 69 74 |defaultI|tem, &it|
|00000a30| 65 6d 54 79 70 65 2c 20 | 26 69 74 65 6d 48 61 6e |emType, |&itemHan|
|00000a40| 64 6c 65 2c 20 26 69 74 | 65 6d 52 65 63 74 29 3b |dle, &it|emRect);|
|00000a50| 0d 0d 09 69 74 65 6d 52 | 65 63 74 2e 74 6f 70 20 |...itemR|ect.top |
|00000a60| 2d 3d 20 34 3b 0d 09 69 | 74 65 6d 52 65 63 74 2e |-= 4;..i|temRect.|
|00000a70| 6c 65 66 74 20 2d 3d 20 | 34 3b 0d 09 69 74 65 6d |left -= |4;..item|
|00000a80| 52 65 63 74 2e 72 69 67 | 68 74 20 2b 3d 20 34 3b |Rect.rig|ht += 4;|
|00000a90| 0d 09 69 74 65 6d 52 65 | 63 74 2e 62 6f 74 74 6f |..itemRe|ct.botto|
|00000aa0| 6d 20 2b 3d 20 34 3b 0d | 0d 09 74 68 65 52 65 63 |m += 4;.|..theRec|
|00000ab0| 74 20 3d 20 69 74 65 6d | 52 65 63 74 3b 0d 7d 0d |t = item|Rect;.}.|
|00000ac0| 76 6f 69 64 0d 43 4d 6f | 64 61 6c 44 69 61 6c 6f |void.CMo|dalDialo|
|00000ad0| 67 3a 3a 49 6e 76 61 6c | 69 64 61 74 65 44 65 66 |g::Inval|idateDef|
|00000ae0| 61 75 6c 74 52 65 63 74 | 28 76 6f 69 64 29 0d 7b |aultRect|(void).{|
|00000af0| 0d 52 65 63 74 09 09 09 | 64 65 66 61 75 6c 74 52 |.Rect...|defaultR|
|00000b00| 65 63 74 3b 0d 47 72 61 | 66 50 74 72 09 09 09 73 |ect;.Gra|fPtr...s|
|00000b10| 61 76 65 50 6f 72 74 3b | 0d 0d 09 74 68 69 73 2d |avePort;|...this-|
|00000b20| 3e 47 65 74 44 65 66 61 | 75 6c 74 52 65 63 74 28 |>GetDefa|ultRect(|
|00000b30| 20 64 65 66 61 75 6c 74 | 52 65 63 74 20 29 3b 0d | default|Rect );.|
|00000b40| 09 3a 3a 47 65 74 50 6f | 72 74 28 26 73 61 76 65 |.::GetPo|rt(&save|
|00000b50| 50 6f 72 74 29 3b 0d 09 | 3a 3a 53 65 74 50 6f 72 |Port);..|::SetPor|
|00000b60| 74 28 74 68 69 73 2d 3e | 74 68 65 44 69 61 6c 6f |t(this->|theDialo|
|00000b70| 67 29 3b 0d 09 3a 3a 49 | 6e 76 61 6c 52 65 63 74 |g);..::I|nvalRect|
|00000b80| 28 26 64 65 66 61 75 6c | 74 52 65 63 74 29 3b 0d |(&defaul|tRect);.|
|00000b90| 09 3a 3a 53 65 74 50 6f | 72 74 28 73 61 76 65 50 |.::SetPo|rt(saveP|
|00000ba0| 6f 72 74 29 3b 0d 7d 0d | 0d 76 6f 69 64 0d 43 4d |ort);.}.|.void.CM|
|00000bb0| 6f 64 61 6c 44 69 61 6c | 6f 67 3a 3a 46 61 6b 65 |odalDial|og::Fake|
|00000bc0| 44 65 66 61 75 6c 74 42 | 75 74 74 6f 6e 50 72 65 |DefaultB|uttonPre|
|00000bd0| 73 73 28 20 76 6f 69 64 | 20 29 0d 7b 0d 73 68 6f |ss( void| ).{.sho|
|00000be0| 72 74 09 09 09 69 74 65 | 6d 54 79 70 65 3b 0d 52 |rt...ite|mType;.R|
|00000bf0| 65 63 74 09 09 09 69 74 | 65 6d 52 65 63 74 3b 0d |ect...it|emRect;.|
|00000c00| 48 61 6e 64 6c 65 09 09 | 09 69 74 65 6d 48 61 6e |Handle..|.itemHan|
|00000c10| 64 6c 65 3b 0d 6c 6f 6e | 67 09 09 09 74 69 63 6b |dle;.lon|g...tick|
|00000c20| 73 20 3d 20 3a 3a 54 69 | 63 6b 43 6f 75 6e 74 28 |s = ::Ti|ckCount(|
|00000c30| 29 3b 0d 0d 09 3a 3a 47 | 65 74 44 69 61 6c 6f 67 |);...::G|etDialog|
|00000c40| 49 74 65 6d 28 20 74 68 | 69 73 2d 3e 74 68 65 44 |Item( th|is->theD|
|00000c50| 69 61 6c 6f 67 2c 20 74 | 68 69 73 2d 3e 64 65 66 |ialog, t|his->def|
|00000c60| 61 75 6c 74 49 74 65 6d | 2c 20 26 69 74 65 6d 54 |aultItem|, &itemT|
|00000c70| 79 70 65 2c 20 26 69 74 | 65 6d 48 61 6e 64 6c 65 |ype, &it|emHandle|
|00000c80| 2c 20 26 69 74 65 6d 52 | 65 63 74 29 3b 0d 0d 09 |, &itemR|ect);...|
|00000c90| 3a 3a 48 69 6c 69 74 65 | 43 6f 6e 74 72 6f 6c 28 |::Hilite|Control(|
|00000ca0| 20 28 43 6f 6e 74 72 6f | 6c 48 61 6e 64 6c 65 29 | (Contro|lHandle)|
|00000cb0| 69 74 65 6d 48 61 6e 64 | 6c 65 2c 20 31 20 29 3b |itemHand|le, 1 );|
|00000cc0| 0d 09 77 68 69 6c 65 20 | 28 74 69 63 6b 73 20 2b |..while |(ticks +|
|00000cd0| 20 31 30 20 3e 20 3a 3a | 54 69 63 6b 43 6f 75 6e | 10 > ::|TickCoun|
|00000ce0| 74 28 29 20 29 0d 09 09 | 3b 0d 09 3a 3a 48 69 6c |t() )...|;..::Hil|
|00000cf0| 69 74 65 43 6f 6e 74 72 | 6f 6c 28 20 28 43 6f 6e |iteContr|ol( (Con|
|00000d00| 74 72 6f 6c 48 61 6e 64 | 6c 65 29 69 74 65 6d 48 |trolHand|le)itemH|
|00000d10| 61 6e 64 6c 65 2c 20 30 | 20 29 3b 0d 7d 0d 0d 76 |andle, 0| );.}..v|
|00000d20| 6f 69 64 0d 43 4d 6f 64 | 61 6c 44 69 61 6c 6f 67 |oid.CMod|alDialog|
|00000d30| 3a 3a 46 61 6b 65 43 61 | 6e 63 65 6c 42 75 74 74 |::FakeCa|ncelButt|
|00000d40| 6f 6e 50 72 65 73 73 28 | 20 76 6f 69 64 20 29 0d |onPress(| void ).|
|00000d50| 7b 0d 73 68 6f 72 74 09 | 09 09 69 74 65 6d 54 79 |{.short.|..itemTy|
|00000d60| 70 65 3b 0d 52 65 63 74 | 09 09 09 69 74 65 6d 52 |pe;.Rect|...itemR|
|00000d70| 65 63 74 3b 0d 48 61 6e | 64 6c 65 09 09 09 69 74 |ect;.Han|dle...it|
|00000d80| 65 6d 48 61 6e 64 6c 65 | 3b 0d 6c 6f 6e 67 09 09 |emHandle|;.long..|
|00000d90| 09 74 69 63 6b 73 20 3d | 20 3a 3a 54 69 63 6b 43 |.ticks =| ::TickC|
|00000da0| 6f 75 6e 74 28 29 3b 0d | 0d 09 3a 3a 47 65 74 44 |ount();.|..::GetD|
|00000db0| 69 61 6c 6f 67 49 74 65 | 6d 28 20 74 68 69 73 2d |ialogIte|m( this-|
|00000dc0| 3e 74 68 65 44 69 61 6c | 6f 67 2c 20 74 68 69 73 |>theDial|og, this|
|00000dd0| 2d 3e 63 61 6e 63 65 6c | 49 74 65 6d 2c 20 26 69 |->cancel|Item, &i|
|00000de0| 74 65 6d 54 79 70 65 2c | 20 26 69 74 65 6d 48 61 |temType,| &itemHa|
|00000df0| 6e 64 6c 65 2c 20 26 69 | 74 65 6d 52 65 63 74 29 |ndle, &i|temRect)|
|00000e00| 3b 0d 0d 09 3a 3a 48 69 | 6c 69 74 65 43 6f 6e 74 |;...::Hi|liteCont|
|00000e10| 72 6f 6c 28 20 28 43 6f | 6e 74 72 6f 6c 48 61 6e |rol( (Co|ntrolHan|
|00000e20| 64 6c 65 29 69 74 65 6d | 48 61 6e 64 6c 65 2c 20 |dle)item|Handle, |
|00000e30| 31 20 29 3b 0d 09 77 68 | 69 6c 65 20 28 74 69 63 |1 );..wh|ile (tic|
|00000e40| 6b 73 20 2b 20 31 30 20 | 3e 20 3a 3a 54 69 63 6b |ks + 10 |> ::Tick|
|00000e50| 43 6f 75 6e 74 28 29 20 | 29 0d 09 09 3b 0d 09 3a |Count() |)...;..:|
|00000e60| 3a 48 69 6c 69 74 65 43 | 6f 6e 74 72 6f 6c 28 20 |:HiliteC|ontrol( |
|00000e70| 28 43 6f 6e 74 72 6f 6c | 48 61 6e 64 6c 65 29 69 |(Control|Handle)i|
|00000e80| 74 65 6d 48 61 6e 64 6c | 65 2c 20 30 20 29 3b 0d |temHandl|e, 0 );.|
|00000e90| 7d 0d 0d 76 6f 69 64 0d | 43 4d 6f 64 61 6c 44 69 |}..void.|CModalDi|
|00000ea0| 61 6c 6f 67 3a 3a 53 68 | 6f 77 28 20 76 6f 69 64 |alog::Sh|ow( void|
|00000eb0| 20 29 0d 7b 0d 09 3a 3a | 53 68 6f 77 57 69 6e 64 | ).{..::|ShowWind|
|00000ec0| 6f 77 28 74 68 69 73 2d | 3e 74 68 65 44 69 61 6c |ow(this-|>theDial|
|00000ed0| 6f 67 29 3b 0d 09 3a 3a | 53 65 6c 65 63 74 57 69 |og);..::|SelectWi|
|00000ee0| 6e 64 6f 77 28 74 68 69 | 73 2d 3e 74 68 65 44 69 |ndow(thi|s->theDi|
|00000ef0| 61 6c 6f 67 29 3b 0d 09 | 0d 09 74 68 69 73 2d 3e |alog);..|..this->|
|00000f00| 73 68 6f 77 48 61 73 42 | 65 65 6e 43 61 6c 6c 65 |showHasB|eenCalle|
|00000f10| 64 20 3d 20 74 72 75 65 | 3b 0d 7d 0d 76 6f 69 64 |d = true|;.}.void|
|00000f20| 0d 43 4d 6f 64 61 6c 44 | 69 61 6c 6f 67 3a 3a 48 |.CModalD|ialog::H|
|00000f30| 69 64 65 28 20 76 6f 69 | 64 20 29 0d 7b 0d 09 3a |ide( voi|d ).{..:|
|00000f40| 3a 48 69 64 65 57 69 6e | 64 6f 77 28 74 68 69 73 |:HideWin|dow(this|
|00000f50| 2d 3e 74 68 65 44 69 61 | 6c 6f 67 29 3b 0d 7d 0d |->theDia|log);.}.|
|00000f60| 0d 73 68 6f 72 74 09 0d | 43 4d 6f 64 61 6c 44 69 |.short..|CModalDi|
|00000f70| 61 6c 6f 67 3a 3a 44 6f | 4f 6e 65 4d 6f 64 61 6c |alog::Do|OneModal|
|00000f80| 4c 6f 6f 70 28 20 76 6f | 69 64 20 29 0d 7b 0d 73 |Loop( vo|id ).{.s|
|00000f90| 68 6f 72 74 09 69 74 65 | 6d 48 69 74 3b 0d 0d 09 |hort.ite|mHit;...|
|00000fa0| 69 66 20 28 21 74 68 69 | 73 2d 3e 73 68 6f 77 48 |if (!thi|s->showH|
|00000fb0| 61 73 42 65 65 6e 43 61 | 6c 6c 65 64 29 0d 09 09 |asBeenCa|lled)...|
|00000fc0| 74 68 69 73 2d 3e 53 68 | 6f 77 28 29 3b 0d 09 3a |this->Sh|ow();..:|
|00000fd0| 3a 4d 6f 64 61 6c 44 69 | 61 6c 6f 67 28 74 68 69 |:ModalDi|alog(thi|
|00000fe0| 73 2d 3e 64 69 61 6c 6f | 67 46 69 6c 74 65 72 55 |s->dialo|gFilterU|
|00000ff0| 50 50 2c 20 26 69 74 65 | 6d 48 69 74 29 3b 0d 09 |PP, &ite|mHit);..|
|00001000| 0d 09 72 65 74 75 72 6e | 20 69 74 65 6d 48 69 74 |..return| itemHit|
|00001010| 3b 0d 7d 0d 0d 2f 2f 0d | 2f 2f 20 54 68 69 73 20 |;.}..//.|// This |
|00001020| 69 73 20 74 68 65 20 64 | 69 61 6c 6f 67 20 66 69 |is the d|ialog fi|
|00001030| 6c 74 65 72 20 73 74 75 | 66 66 2e 0d 2f 2f 0d 0d |lter stu|ff..//..|
|00001040| 42 6f 6f 6c 65 61 6e 0d | 43 4d 6f 64 61 6c 44 69 |Boolean.|CModalDi|
|00001050| 61 6c 6f 67 3a 3a 55 70 | 64 61 74 65 46 69 6c 74 |alog::Up|dateFilt|
|00001060| 65 72 28 20 44 69 61 6c | 6f 67 50 74 72 20 74 68 |er( Dial|ogPtr th|
|00001070| 65 44 6c 67 2c 20 45 76 | 65 6e 74 52 65 63 6f 72 |eDlg, Ev|entRecor|
|00001080| 64 20 2a 74 68 65 45 76 | 65 6e 74 2c 20 73 68 6f |d *theEv|ent, sho|
|00001090| 72 74 20 2a 69 74 65 6d | 48 69 74 29 0d 7b 0d 47 |rt *item|Hit).{.G|
|000010a0| 72 61 66 50 74 72 09 09 | 09 73 61 76 65 50 6f 72 |rafPtr..|.savePor|
|000010b0| 74 3b 0d 42 6f 6f 6c 65 | 61 6e 09 09 09 72 65 74 |t;.Boole|an...ret|
|000010c0| 75 72 6e 43 6f 64 65 20 | 3d 20 66 61 6c 73 65 3b |urnCode |= false;|
|000010d0| 0d 0d 09 69 66 20 28 20 | 28 57 69 6e 64 6f 77 50 |...if ( |(WindowP|
|000010e0| 74 72 29 28 74 68 65 45 | 76 65 6e 74 2d 3e 6d 65 |tr)(theE|vent->me|
|000010f0| 73 73 61 67 65 29 20 3d | 3d 20 74 68 65 44 6c 67 |ssage) =|= theDlg|
|00001100| 20 20 29 0d 09 7b 0d 09 | 09 47 65 74 50 6f 72 74 | )..{..|.GetPort|
|00001110| 28 26 73 61 76 65 50 6f | 72 74 29 3b 0d 09 09 53 |(&savePo|rt);...S|
|00001120| 65 74 50 6f 72 74 28 74 | 68 65 44 6c 67 29 3b 0d |etPort(t|heDlg);.|
|00001130| 09 09 42 65 67 69 6e 55 | 70 64 61 74 65 28 74 68 |..BeginU|pdate(th|
|00001140| 65 44 6c 67 29 3b 0d 09 | 09 09 09 0d 09 09 74 68 |eDlg);..|......th|
|00001150| 69 73 2d 3e 44 72 61 77 | 44 69 61 6c 6f 67 28 29 |is->Draw|Dialog()|
|00001160| 3b 0d 09 09 0d 09 09 45 | 6e 64 55 70 64 61 74 65 |;......E|ndUpdate|
|00001170| 28 74 68 65 44 6c 67 29 | 3b 0d 09 09 53 65 74 50 |(theDlg)|;...SetP|
|00001180| 6f 72 74 28 73 61 76 65 | 50 6f 72 74 29 3b 0d 09 |ort(save|Port);..|
|00001190| 0d 09 09 2a 69 74 65 6d | 48 69 74 20 3d 20 30 3b |...*item|Hit = 0;|
|000011a0| 0d 09 09 72 65 74 75 72 | 6e 43 6f 64 65 20 3d 20 |...retur|nCode = |
|000011b0| 74 72 75 65 3b 0d 09 7d | 0d 09 72 65 74 75 72 6e |true;..}|..return|
|000011c0| 20 72 65 74 75 72 6e 43 | 6f 64 65 3b 0d 7d 0d 0d | returnC|ode;.}..|
|000011d0| 76 6f 69 64 0d 43 4d 6f | 64 61 6c 44 69 61 6c 6f |void.CMo|dalDialo|
|000011e0| 67 3a 3a 44 72 61 77 44 | 69 61 6c 6f 67 28 20 76 |g::DrawD|ialog( v|
|000011f0| 6f 69 64 20 29 0d 7b 0d | 09 3a 3a 55 70 64 61 74 |oid ).{.|.::Updat|
|00001200| 65 44 69 61 6c 6f 67 28 | 74 68 69 73 2d 3e 74 68 |eDialog(|this->th|
|00001210| 65 44 69 61 6c 6f 67 2c | 74 68 69 73 2d 3e 74 68 |eDialog,|this->th|
|00001220| 65 44 69 61 6c 6f 67 2d | 3e 76 69 73 52 67 6e 29 |eDialog-|>visRgn)|
|00001230| 3b 0d 09 09 09 09 09 0d | 09 74 68 69 73 2d 3e 46 |;.......|.this->F|
|00001240| 72 61 6d 65 44 65 66 61 | 75 6c 74 42 75 74 74 6f |rameDefa|ultButto|
|00001250| 6e 28 29 3b 0d 7d 0d 0d | 42 6f 6f 6c 65 61 6e 0d |n();.}..|Boolean.|
|00001260| 43 4d 6f 64 61 6c 44 69 | 61 6c 6f 67 3a 3a 4b 65 |CModalDi|alog::Ke|
|00001270| 79 44 6f 77 6e 46 69 6c | 74 65 72 28 20 44 69 61 |yDownFil|ter( Dia|
|00001280| 6c 6f 67 50 74 72 20 2f | 2a 20 74 68 65 44 6c 67 |logPtr /|* theDlg|
|00001290| 20 2a 2f 2c 20 45 76 65 | 6e 74 52 65 63 6f 72 64 | */, Eve|ntRecord|
|000012a0| 20 2a 74 68 65 45 76 65 | 6e 74 2c 20 73 68 6f 72 | *theEve|nt, shor|
|000012b0| 74 20 2a 69 74 65 6d 48 | 69 74 29 0d 7b 0d 42 6f |t *itemH|it).{.Bo|
|000012c0| 6f 6c 65 61 6e 09 09 72 | 65 74 75 72 6e 43 6f 64 |olean..r|eturnCod|
|000012d0| 65 20 3d 20 66 61 6c 73 | 65 3b 0d 63 68 61 72 09 |e = fals|e;.char.|
|000012e0| 09 6b 65 79 20 3d 20 74 | 68 65 45 76 65 6e 74 2d |.key = t|heEvent-|
|000012f0| 3e 6d 65 73 73 61 67 65 | 26 63 68 61 72 43 6f 64 |>message|&charCod|
|00001300| 65 4d 61 73 6b 3b 0d 09 | 0d 09 69 66 20 28 28 20 |eMask;..|..if (( |
|00001310| 6b 65 79 20 3d 3d 20 30 | 78 30 44 20 29 7c 7c 28 |key == 0|x0D )||(|
|00001320| 20 6b 65 79 20 3d 3d 20 | 30 78 30 33 29 29 20 0d | key == |0x03)) .|
|00001330| 09 2f 2f 20 72 65 74 75 | 72 6e 20 6f 72 20 65 6e |.// retu|rn or en|
|00001340| 74 65 72 20 6b 65 79 0d | 09 7b 0d 09 09 74 68 69 |ter key.|.{...thi|
|00001350| 73 2d 3e 46 61 6b 65 44 | 65 66 61 75 6c 74 42 75 |s->FakeD|efaultBu|
|00001360| 74 74 6f 6e 50 72 65 73 | 73 28 29 3b 0d 09 09 2a |ttonPres|s();...*|
|00001370| 69 74 65 6d 48 69 74 20 | 3d 20 74 68 69 73 2d 3e |itemHit |= this->|
|00001380| 64 65 66 61 75 6c 74 49 | 74 65 6d 3b 0d 09 09 72 |defaultI|tem;...r|
|00001390| 65 74 75 72 6e 43 6f 64 | 65 20 3d 20 74 72 75 65 |eturnCod|e = true|
|000013a0| 3b 0d 09 7d 09 0d 09 65 | 6c 73 65 20 69 66 20 28 |;..}...e|lse if (|
|000013b0| 09 28 20 6b 65 79 20 3d | 3d 20 30 78 31 42 20 29 |.( key =|= 0x1B )|
|000013c0| 0d 09 09 09 09 7c 7c 20 | 28 28 20 6b 65 79 20 3d |.....|| |(( key =|
|000013d0| 3d 20 27 2e 27 29 26 26 | 28 74 68 65 45 76 65 6e |= '.')&&|(theEven|
|000013e0| 74 2d 3e 6d 6f 64 69 66 | 69 65 72 73 26 63 6d 64 |t->modif|iers&cmd|
|000013f0| 4b 65 79 29 29 20 29 20 | 0d 09 2f 2f 20 63 61 6e |Key)) ) |..// can|
|00001400| 63 65 6c 20 6f 72 20 63 | 6f 6d 6d 61 6e 64 20 70 |cel or c|ommand p|
|00001410| 65 72 69 6f 64 0d 09 7b | 0d 09 09 74 68 69 73 2d |eriod..{|...this-|
|00001420| 3e 46 61 6b 65 43 61 6e | 63 65 6c 42 75 74 74 6f |>FakeCan|celButto|
|00001430| 6e 50 72 65 73 73 28 29 | 3b 0d 09 09 2a 69 74 65 |nPress()|;...*ite|
|00001440| 6d 48 69 74 20 3d 20 74 | 68 69 73 2d 3e 63 61 6e |mHit = t|his->can|
|00001450| 63 65 6c 49 74 65 6d 3b | 0d 09 09 72 65 74 75 72 |celItem;|...retur|
|00001460| 6e 43 6f 64 65 20 3d 20 | 74 72 75 65 3b 0d 09 7d |nCode = |true;..}|
|00001470| 0d 09 72 65 74 75 72 6e | 20 72 65 74 75 72 6e 43 |..return| returnC|
|00001480| 6f 64 65 3b 0d 7d 0d 42 | 6f 6f 6c 65 61 6e 0d 43 |ode;.}.B|oolean.C|
|00001490| 4d 6f 64 61 6c 44 69 61 | 6c 6f 67 3a 3a 4d 6f 75 |ModalDia|log::Mou|
|000014a0| 73 65 44 6f 77 6e 46 69 | 6c 74 65 72 28 20 44 69 |seDownFi|lter( Di|
|000014b0| 61 6c 6f 67 50 74 72 2c | 20 45 76 65 6e 74 52 65 |alogPtr,| EventRe|
|000014c0| 63 6f 72 64 2a 2c 20 73 | 68 6f 72 74 2a 20 29 0d |cord*, s|hort* ).|
|000014d0| 7b 0d 09 72 65 74 75 72 | 6e 20 66 61 6c 73 65 3b |{..retur|n false;|
|000014e0| 0d 7d 0d 42 6f 6f 6c 65 | 61 6e 0d 43 4d 6f 64 61 |.}.Boole|an.CModa|
|000014f0| 6c 44 69 61 6c 6f 67 3a | 3a 4f 74 68 65 72 46 69 |lDialog:|:OtherFi|
|00001500| 6c 74 65 72 28 20 44 69 | 61 6c 6f 67 50 74 72 2c |lter( Di|alogPtr,|
|00001510| 20 45 76 65 6e 74 52 65 | 63 6f 72 64 2a 2c 20 73 | EventRe|cord*, s|
|00001520| 68 6f 72 74 2a 20 29 0d | 7b 0d 09 72 65 74 75 72 |hort* ).|{..retur|
|00001530| 6e 20 66 61 6c 73 65 3b | 0d 7d 0d 0d 70 61 73 63 |n false;|.}..pasc|
|00001540| 61 6c 20 42 6f 6f 6c 65 | 61 6e 20 43 4d 6f 64 61 |al Boole|an CModa|
|00001550| 6c 44 69 61 6c 6f 67 46 | 69 6c 74 65 72 28 20 44 |lDialogF|ilter( D|
|00001560| 69 61 6c 6f 67 50 74 72 | 20 74 68 65 44 6c 67 2c |ialogPtr| theDlg,|
|00001570| 20 45 76 65 6e 74 52 65 | 63 6f 72 64 20 2a 74 68 | EventRe|cord *th|
|00001580| 65 45 76 65 6e 74 2c 20 | 73 68 6f 72 74 20 2a 69 |eEvent, |short *i|
|00001590| 74 65 6d 48 69 74 29 0d | 7b 0d 43 4d 6f 64 61 6c |temHit).|{.CModal|
|000015a0| 44 69 61 6c 6f 67 09 2a | 74 68 65 54 68 69 73 3b |Dialog.*|theThis;|
|000015b0| 0d 42 6f 6f 6c 65 61 6e | 09 09 09 72 65 74 75 72 |.Boolean|...retur|
|000015c0| 6e 43 6f 64 65 3b 0d 0d | 09 74 68 65 54 68 69 73 |nCode;..|.theThis|
|000015d0| 20 3d 20 28 43 4d 6f 64 | 61 6c 44 69 61 6c 6f 67 | = (CMod|alDialog|
|000015e0| 2a 29 47 65 74 57 52 65 | 66 43 6f 6e 28 74 68 65 |*)GetWRe|fCon(the|
|000015f0| 44 6c 67 29 3b 0d 09 0d | 09 69 66 20 28 74 68 65 |Dlg);...|.if (the|
|00001600| 44 6c 67 20 21 3d 20 74 | 68 65 54 68 69 73 2d 3e |Dlg != t|heThis->|
|00001610| 74 68 65 44 69 61 6c 6f | 67 29 0d 09 09 72 65 74 |theDialo|g)...ret|
|00001620| 75 72 6e 20 66 61 6c 73 | 65 3b 0d 09 09 09 0d 09 |urn fals|e;......|
|00001630| 73 77 69 74 63 68 20 28 | 20 74 68 65 45 76 65 6e |switch (| theEven|
|00001640| 74 2d 3e 77 68 61 74 20 | 29 0d 09 7b 0d 09 09 63 |t->what |)..{...c|
|00001650| 61 73 65 20 75 70 64 61 | 74 65 45 76 74 3a 0d 09 |ase upda|teEvt:..|
|00001660| 09 09 72 65 74 75 72 6e | 43 6f 64 65 20 3d 20 74 |..return|Code = t|
|00001670| 68 65 54 68 69 73 2d 3e | 55 70 64 61 74 65 46 69 |heThis->|UpdateFi|
|00001680| 6c 74 65 72 28 20 74 68 | 65 44 6c 67 2c 20 74 68 |lter( th|eDlg, th|
|00001690| 65 45 76 65 6e 74 2c 20 | 69 74 65 6d 48 69 74 20 |eEvent, |itemHit |
|000016a0| 29 3b 0d 09 09 09 62 72 | 65 61 6b 3b 0d 09 09 63 |);....br|eak;...c|
|000016b0| 61 73 65 20 6b 65 79 44 | 6f 77 6e 3a 0d 09 09 09 |ase keyD|own:....|
|000016c0| 72 65 74 75 72 6e 43 6f | 64 65 20 3d 20 74 68 65 |returnCo|de = the|
|000016d0| 54 68 69 73 2d 3e 4b 65 | 79 44 6f 77 6e 46 69 6c |This->Ke|yDownFil|
|000016e0| 74 65 72 28 20 74 68 65 | 44 6c 67 2c 20 74 68 65 |ter( the|Dlg, the|
|000016f0| 45 76 65 6e 74 2c 20 69 | 74 65 6d 48 69 74 20 29 |Event, i|temHit )|
|00001700| 3b 0d 09 09 09 62 72 65 | 61 6b 3b 0d 09 09 63 61 |;....bre|ak;...ca|
|00001710| 73 65 20 6d 6f 75 73 65 | 44 6f 77 6e 3a 0d 09 09 |se mouse|Down:...|
|00001720| 09 72 65 74 75 72 6e 43 | 6f 64 65 20 3d 20 74 68 |.returnC|ode = th|
|00001730| 65 54 68 69 73 2d 3e 4d | 6f 75 73 65 44 6f 77 6e |eThis->M|ouseDown|
|00001740| 46 69 6c 74 65 72 28 20 | 74 68 65 44 6c 67 2c 20 |Filter( |theDlg, |
|00001750| 74 68 65 45 76 65 6e 74 | 2c 20 69 74 65 6d 48 69 |theEvent|, itemHi|
|00001760| 74 20 29 3b 0d 09 09 09 | 62 72 65 61 6b 3b 0d 09 |t );....|break;..|
|00001770| 09 64 65 66 61 75 6c 74 | 3a 0d 09 09 09 72 65 74 |.default|:....ret|
|00001780| 75 72 6e 43 6f 64 65 20 | 3d 20 74 68 65 54 68 69 |urnCode |= theThi|
|00001790| 73 2d 3e 4f 74 68 65 72 | 46 69 6c 74 65 72 28 20 |s->Other|Filter( |
|000017a0| 74 68 65 44 6c 67 2c 20 | 74 68 65 45 76 65 6e 74 |theDlg, |theEvent|
|000017b0| 2c 20 69 74 65 6d 48 69 | 74 20 29 3b 0d 09 09 09 |, itemHi|t );....|
|000017c0| 62 72 65 61 6b 3b 0d 09 | 7d 0d 09 72 65 74 75 72 |break;..|}..retur|
|000017d0| 6e 20 28 72 65 74 75 72 | 6e 43 6f 64 65 29 3b 0d |n (retur|nCode);.|
|000017e0| 7d 0d 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |}.......|........|
|000017f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001800| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00001810| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 13 9e 8c |........|........|
|00001820| 00 13 a2 50 01 e2 6f c0 | 40 88 1b c0 00 10 ce cc |...P..o.|@.......|
|00001830| 0f 43 4d 6f 64 61 6c 44 | 69 61 6c 6f 67 2e 63 70 |.CModalD|ialog.cp|
|00001840| 02 00 00 00 54 45 58 54 | 4d 50 43 43 01 00 ff ff |....TEXT|MPCC....|
|00001850| 00 00 54 45 58 54 4d 50 | 43 43 01 00 ff ff ff ff |..TEXTMP|CC......|
|00001860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001870| 00 00 ac 7a 75 4d 00 00 | 17 62 00 00 01 9a 00 00 |...zuM..|.b......|
|00001880| 00 00 00 00 0f 41 44 54 | 41 2d 35 38 31 2d 30 30 |.....ADT|A-581-00|
|00001890| 33 30 35 39 00 04 b0 00 | 00 00 33 80 00 04 71 9c |3059....|..3...q.|
|000018a0| 00 7f 51 90 00 7f 1f 32 | 00 00 00 02 82 00 00 07 |..Q....2|........|
|000018b0| 00 04 a1 94 00 13 30 02 | 00 00 00 00 01 e2 70 2e |......0.|......p.|
|000018c0| 00 00 00 00 00 21 a5 34 | 00 13 a2 50 00 00 00 00 |.....!.4|...P....|
|000018d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000018f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001900| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00001910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001920| 00 00 00 00 00 00 00 03 | 00 04 00 67 00 23 01 dc |........|...g.#..|
|00001930| 02 82 00 67 00 23 01 dc | 02 82 ac a1 cb 40 00 00 |...g.#..|.....@..|
|00001940| 00 c1 00 00 02 4c 00 00 | 00 00 01 00 00 00 00 04 |.....L..|........|
|00001950| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|00001960| 00 00 00 46 01 a5 0b 10 | 25 18 00 00 00 1c 00 46 |...F....|%......F|
|00001970| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00001980| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00001990| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|000019a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000019f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+