home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turbo Toolbox
/
Turbo_Toolbox.iso
/
1991
/
06
/
praxis
/
listing6.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1991-03-12
|
1KB
|
38 lines
(* ------------------------------------------------------ *)
(* LISTING.6 *)
(* (c) 1991 Borland International *)
(* ------------------------------------------------------ *)
{ CRT window procedure }
FUNCTION CrtWinProc(Window : HWnd; Message, WParam : WORD;
LParam : LONGINT) : LONGINT;
BEGIN
CrtWinProc := 0;
CrtWindow := Window;
CASE Message OF
wm_Create : WindowCreate;
wm_Paint : WindowPaint;
wm_VScroll : WindowScroll(sb_Vert, WParam,
LongRec(LParam).Lo);
wm_HScroll : WindowScroll(sb_Horz, WParam,
LongRec(LParam).Lo);
wm_Size : WindowResize(LongRec(LParam).Lo,
LongRec(LParam).Hi);
wm_GetMinMaxInfo : WindowMinMaxInfo
(PMinMaxInfo(LParam));
wm_Char : WindowChar(CHAR(WParam));
wm_KeyDown : WindowKeyDown(BYTE(WParam));
wm_SetFocus : WindowSetFocus;
wm_KillFocus : WindowKillFocus;
wm_Destroy : WindowDestroy;
ELSE
CrtWinProc := DefWindowProc(Window, Message,
WParam, LParam);
END;
END;
(* ------------------------------------------------------ *)
(* Ende von LISTING.6 *)