TSendData = procedure (Sender: TObject; BytesSent: Integer) of object;\r
\r
tlcomponent = class(tcomponent)\r
TSendData = procedure (Sender: TObject; BytesSent: Integer) of object;\r
\r
tlcomponent = class(tcomponent)\r
- private
- procedure releasetaskhandler(wparam,lparam:longint);
+ private\r
+ procedure releasetaskhandler(wparam,lparam:longint);\r
public\r
procedure release; virtual;\r
destructor destroy; override;\r
public\r
procedure release; virtual;\r
destructor destroy; override;\r
inherited destroy;\r
end;\r
\r
inherited destroy;\r
end;\r
\r
-procedure tlcomponent.releasetaskhandler(wparam,lparam:longint);
-begin
- free;
-end;
+procedure tlcomponent.releasetaskhandler(wparam,lparam:longint);\r
+begin\r
+ free;\r
+end;\r
\r
\r
procedure tlcomponent.release;\r
begin\r
\r
\r
procedure tlcomponent.release;\r
begin\r
- addtask(releasetaskhandler,self,0,0);
+ addtask(releasetaskhandler,self,0,0);\r
end;\r
\r
procedure tlasio.release;\r
end;\r
\r
procedure tlasio.release;\r
//we have to get the window procedure while the structurelock\r
//is still held as the window could be destroyed from another thread\r
//otherwise.\r
//we have to get the window procedure while the structurelock\r
//is still held as the window could be destroyed from another thread\r
//otherwise.\r
- if window <> nil then begin
+ if window <> nil then begin\r
windowproc := window.windowproc;\r
windowproc := window.windowproc;\r
- end else begin
- windowproc := nil;
- end;
+ end else begin\r
+ windowproc := nil;\r
+ end;\r
finally\r
structurelock.release;\r
end;\r
finally\r
structurelock.release;\r
end;\r
+{ Copyright (C) 2005 Bas Steendijk and Peter Green\r
+ For conditions of distribution and use, see copyright notice in zlib_license.txt\r
+ which is included in the package\r
+ ----------------------------------------------------------------------------- } \r
+ \r
unit wmessages;\r
//this unit contains varions functions and types to make it easier to write\r
//code that works with both real windows messages and lmessages\r
unit wmessages;\r
//this unit contains varions functions and types to make it easier to write\r
//code that works with both real windows messages and lmessages\r