X-Git-Url: http://www.lcore.org/git/lcore.git/blobdiff_plain/7cad80355c81569210547a281e30cd491b5bb353..a77cd534c22418ec9a8a22ae42efef1a9500b193:/unitwindowobject.pas?ds=inline diff --git a/unitwindowobject.pas b/unitwindowobject.pas index 706c6a3..ec5d955 100644 --- a/unitwindowobject.pas +++ b/unitwindowobject.pas @@ -12,9 +12,9 @@ uses {$ifdef mswindows} windows,messages,wmessages, {$else} - lmessages, + lcoremessages, {$macro on} - {$define windows := lmessages} + {$define windows := lcoremessages} {$endif} sysutils, pgtypes; @@ -118,7 +118,7 @@ begin '', dwstyle, CW_USEDEFAULT, CW_USEDEFAULT,100, 100, hwnd(0), 0, HInstance, nil); //swriteln('about to check result of createwindowex'); if hWndMain = hwnd(0) then raise exception.create('CreateWindowEx failed'); - //swriteln('about to store reference to self in extra windo memory'); + //swriteln('about to store reference to self in extra window memory'); setwindowlongptr(hwndmain,0,taddrint(self)); //swriteln('finished twindowobject.create , hwndmain='+inttohex(taddrint(hwndmain),16)); end; @@ -165,7 +165,7 @@ var MsgRec : TMsg; begin while GetMessage(MsgRec, hwnd(0), 0, 0) do begin - {$ifdef mswindowss} + {$ifdef mswindows} TranslateMessage(MsgRec); {$endif} DispatchMessage(MsgRec);