Felipe Monteiro de Carvalho schreef:
Hi,
I decided to follow vincents idea and allocated memory on the head using
GetMem.
On the heap :-)
I did a simple test, and it seams to be working perfectly =) I was
able to send and receive events using AllocateHWnd.
One thing I noted is that on Delphi, the WndProc will normally have a
call to DefWindowProc, and this is obviously Windows only. So, to keep
compatibility with Delphi, every WndProc used with AllocateHWnd would
need to have a IFDEF Windows, with a call to DefWindowProc inside.
Why? I think you have called DefWindowProc already in CallbackAllocateHWnd.
I attached a patch. I think it can be applied after a small test
period. Let´s say, if noone points problems with it in 1 day?
I think you should use SetWindowLongPtr to be win64 safe.
Vincent
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives