[Lazarus] [lazarus] Patch for processing WM_COPYDATA in Win32 / BugID 9210

Christian U. z0m3ie at gmx.net
Wed Feb 20 07:51:54 CET 2008


Please, can you provide an complete Example ?
Ill get silly exceptions every time when i try the stuff in C it works.

best reagrds
Christian

Felipe Monteiro de Carvalho schrieb:
> In the past I thougth that using SetWindowLong was hard. It isn't. It
> will return the address of the current WndProc, so you can just have
> your WndProc like this:
>
> begin
>   if Msg = WM_COPYDATA then
>  ...
>   else CallOldWindowProc;
> end;
>
> And you don't lose anything. With a clever code you can even use the
> same wndproc for any control, just take care to call the correct old
> wndproc in each case.
>
>   




More information about the Lazarus mailing list