Hess, Philip J schreef:
Felipe's implementation, which instead stores the object method's code
and data pointers (4 bytes) in the window's user data, which is
retrieved by the actual callback function to reconstitute the object
method and call it, is cleaner and potentially cross-platform:

  SetWindowLong(hWnd, GWL_USERDATA, PtrInt(PMethod));

He should use SetWindowLongPtr on win64, otherwise he looses 32 bits.

Vincent

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to