1 { KOL MCK } // Do not remove this line!
8 uses Windows
, Messages
, ShellAPI
, KOL
, KOLMHAboutDialog
, KOLMHXP
{$IFNDEF KOL_MCK}, mirror
, Classes
, Controls
, mckCtrls
, mckObjs
, MCKMHAboutDialog
,
12 Windows
, Messages
, SysUtils
, Classes
, Graphics
, Controls
, Forms
, Dialogs
,
18 {$I MCKfakeClasses.inc}
25 KOLProject1
: TKOLProject
;
28 CopyRightL
: TKOLLabel
;
30 MainMenu1
: TKOLMainMenu
;
31 MHAboutDialog1
: TKOLMHAboutDialog
;
33 procedure Timer1Timer(Sender
: PObj
);
34 procedure KOLForm1FormCreate(Sender
: PObj
);
35 procedure KOLForm1N2Menu(Sender
: PMenu
; Item
: Integer);
37 { Private declarations }
39 { Public declarations }
44 Form1
{$IFDEF KOL_MCK} : PForm1
{$ELSE} : TForm1
{$ENDIF} ;
47 procedure NewForm1( var Result
: PForm1
; AParent
: PControl
);
52 {$IFNDEF KOL_MCK} {$R *.DFM} {$ENDIF}
58 procedure TForm1
.Timer1Timer(Sender
: PObj
);
62 Buf
:array [0..255] of Char;
69 CWindow
:= WindowFromPoint(CPos
);
70 // Ôóíêöèÿ GetWindowText íå äàåò òåêñòà èç äðóãîãî îêíà !!!
71 // à ñîîáùåíèå WM_GETTEXT äàåò !!!
72 SendMessage(CWindow
,WM_GETTEXT
,LongInt(SizeOf(Buf
)),LongInt(@Buf
));
74 WL
:= GetWindowLong(CWindow
, GWL_STYLE
);
75 if ((LongInt(ES_PASSWORD
)) and WL
) <> 0 then
77 SendMessage(CWindow
,EM_SETPASSWORDCHAR
,0,0);
78 SendMessage(CWindow
,WM_PAINT
,GetDC(CWindow
),0);
81 // Åñëè ó òåáÿ íåò èìÿíè, òî ìîæåò ó ðîäèòåëÿ åñòü?!
83 // if StrPas(Buf)='' then
84 // SendMessage(GetParentWindow(CWindow),WM_GETTEXT,LongInt(SizeOf(Buf)),LongInt(@Buf));
85 if PassEd
.Text<>String(Buf
) then
86 PassEd
.Text:=String(Buf
);
90 procedure TForm1
.KOLForm1FormCreate(Sender
: PObj
);
94 Form1
.Form
.Caption
:=Form1
.Form
.Caption
+Version
;
97 procedure TForm1
.KOLForm1N2Menu(Sender
: PMenu
; Item
: Integer);
99 MHAboutDialog1
.Execute
;