Discussion:
Setting the parent of a window to a window created by another process
(too old to reply)
David Liebtag
2010-01-08 00:13:46 UTC
Permalink
The documentation that was shipped with Visual Studio .Net 2003 for the
SetParent function included the following sentence:

The new parent window and the child window must belong to the same
application.

The documentation in the online MSDN does not include the sentence.

I have two questions:

Is it still true?

I notice that if I do set the parent of a window to a window that was
created by another application, if that application calls EnumChildWindows
for the parent window, the call back function is not called for the child
window. Is this normal?

Thank you.

David Liebtag
David Liebtag
2010-01-08 13:49:26 UTC
Permalink
I had an error. EnumChildWindows does call the call back function for
children created by other processes.

David

Loading...