X-Git-Url: http://www.lcore.org/git/lcore.git/blobdiff_plain/f8e139db970666e906db30417763f81e2ae5e801..9763940f8849e5c807566157829a1e6d2c9172ee:/lmessages.pas?ds=inline diff --git a/lmessages.pas b/lmessages.pas old mode 100755 new mode 100644 index 39f6f92..d5521e5 --- a/lmessages.pas +++ b/lmessages.pas @@ -4,7 +4,7 @@ ----------------------------------------------------------------------------- } //this unit provides a rough approximation of windows messages on linux -//it is usefull for multithreaded applications on linux to communicate back to +//it is useful for multithreaded applications on linux to communicate back to //the main lcore thread //This unit is *nix only, on windows you should use the real thing @@ -73,6 +73,7 @@ type const WS_EX_TOOLWINDOW = $80; WS_POPUP = longint($80000000); + CW_USEDEFAULT=$80000000; hinstance=nil; PM_REMOVE = 1; WM_USER = 1024; @@ -133,7 +134,7 @@ var lcorelinkpiperecv : tlasio; windows : thashtable; //I would rather things crash immediately - //if they use an insufficiant size type + //if they use an insufficient size type //than crash after over four billion //windows have been made ;) nextwindowhandle : qword = $100000000; @@ -234,7 +235,7 @@ begin //swriteln('duplicate window class registered with different settings'); raise exception.create('duplicate window class registered with different settings'); end else begin - //swriteln('duplicate window class registered with same settings, tollerated'); + //swriteln('duplicate window class registered with same settings, tolerated'); end; end else begin //swriteln('about to allocate memory for new windowclass'); @@ -291,7 +292,7 @@ begin window := twindow(findtree(@windows,inttostr(ahwnd))); if window <> nil then begin freemem(window.extrawindowmemory); - //writeln('aboute to delete window from windows structure'); + //writeln('about to delete window from windows structure'); deltree(@windows,inttostr(ahwnd)); //writeln('deleted window from windows structure'); windowthreaddata := tthreaddata(findtree(@threaddata,inttostr(taddrint(window.threadid))));