A thread should not use IsWindow for a window that it did not create because the window could be destroyed after this function was called. Further,because window handles are recycled the handle could even point to a different window.
C/C++ code
BOOL IsWindow(HWND hWnd);
[/Quote]
A thread should not use IsWindow for a window that it did not create because the window could be destroyed after this function was called. Further, because window handles are recycled the handle could even point to a different window.