For SDI windows, WinHWND(0) returns the handle to the inner window created within the SDI Frame window and not the handle of the frame window itself.
If you want to get the handle of the frame window, you can get it as the return value of the following Magic xpa function:
CallDLL ('USER32.GetAncestor','444',WinHWND(0),2)
|