[lazarus] This should get me much closer, but still questions :^(

Marc Weustink weus at quicknet.nl
Wed Aug 11 16:24:24 EDT 1999


At 19:34 10-08-99 -0400, "Jeffrey A. Wormsley" <daworm at cdc.net> wrote:

>Steps following LM_CREATE

[snip]

>3. Use SetProp to store Data to the window handle structure.  
>
>Q. Should this utilize the lpString parameter directly, subverting its
>intention as a pointer to a string, or is there a way to get a unique
>string and use this to index the hData parameter?

Define an atom once an use this. If you hve acces to Delphi, controls.pas,
look for WindowAtom.

>Steps following LM_DESTROY
>
>1. Call RemoveProp to remove the window handle storage of Data

Do this at last. first call the WinApi DestroyWindow, and on the WM_DESTROY
remove the prop and call TObject(Data).Dispatch(LM_xxxx). 
In this way you also handle the destruction invoked by others.








More information about the Lazarus mailing list