On Sun, Oct 29, 2000 at 08:59:53AM -0500, gerard patel wrote:
> That's they call 'embrace and extend' I guess. This is Marcus's idea but it did
> not fix the bug with *my* application, so I changed it a bit. I hope it's still
>fixing
> his problem - logically it should :-)
I just wanted to go and create a revised that does (only for the toplevel
destroyed window), that does check the destroyed window tree ONCE for
containing the focus:
hwnd = GetFocus16();
while (hwnd && (GetWindowLongA(hwnd,GWL_STYLE) & WS_CHILD)) {
if (hwnd == topdestroyedhwnd) {
SetFocus(GetWindowLongA(topdestroyedhwnd,GWL_HWNDPARENT);
break;
}
hwnd = GetWindowLongA(hwnd,GWL_HWNDPARENT);
}
This would be a bit cleaner than my first approach. ;)
> The 2 points where I have tried to extend his patch are :
Not addressed by above approach.
How does Windows USER does this? Hmm :/
Ciao, Marcus