Hi,
I decided to follow vincents idea and allocated memory on the head using GetMem.
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.
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?
Next: Implementing AllocateHWnd on Gtk =)
thanks,
--
Felipe Monteiro de Carvalho
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives