>Hi Cetin,
>
>my application uses TDI (Tree Document Interface), and uses many API function for control these schema.
>For skip the need of the HwndToObj() function, i must reply all the tree of the hwnd with a equal tree of the reference to the vfp window.
>
>Example:
>
>GetWindow(m.tophWnd,GW_CHILD) is fast, and uses sure windows parent-child internal structure.
>
>Any replication schema, it is a source of possible bugs, caused from syncronization errors.
>
>-----
>
>I uses GetActiveWindow() in order to cover the phase in which
>_SCREEN.ActiveForm it is not defined.
>
>Fabio
Sorry couldn't understand anything.
Cetin