blob: e07f95e89fdff1a41b2611d6db2ff4ff4cbc2ca7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
{
This file is part of the Free Component Library (FCL)
Copyright (c) 1998-2006 by Michael Van Canneyt and Florian Klaempfl
Classes unit for winx64
See the file COPYING.FPC, included in this distribution,
for details about the copyright.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
**********************************************************************}
{$mode objfpc}
{ determine the type of the resource/form file }
{ $define Win16Res}
unit Classes;
interface
uses
rtlconsts,
sysutils,
types,
{$ifdef FPC_TESTGENERICS}
fgl,
{$endif}
typinfo,
windows;
type
TWndMethod = procedure(var msg : TMessage) of object;
function MakeObjectInstance(Method: TWndMethod): Pointer;
procedure FreeObjectInstance(ObjectInstance: Pointer);
function AllocateHWnd(Method: TWndMethod): HWND;
procedure DeallocateHWnd(Wnd: HWND);
{$i classesh.inc}
implementation
uses
sysconst;
{ OS - independent class implementations are in /inc directory. }
{$i classes.inc}
function MakeObjectInstance(Method: TWndMethod): Pointer;
begin
runerror(211);
end;
procedure FreeObjectInstance(ObjectInstance: Pointer);
begin
runerror(211);
end;
function AllocateHWnd(Method: TWndMethod): HWND;
begin
runerror(211);
end;
procedure DeallocateHWnd(Wnd: HWND);
begin
runerror(211);
end;
initialization
CommonInit;
finalization
CommonCleanup;
end.
|