Re: how to change Z-orders of Windows



On Tue, 25 Apr 2006 07:54:53 +0200, "Mark Yudkin"
<myudkinATcompuserveDOTcom@xxxxxxxxxxxxxx> wrote:

Using SetWindowLong for GWL_HWNDPARENT is documented as a DO NOT DO:
<quote>
You must not call SetWindowLong with the GWL_HWNDPARENT index to change the
parent of a child window. Instead, use the SetParent function.
</quote>
See my previous mail.

Note that warning only applies to child windows (controls). For
top-level windows (Forms) it changes the owner, not the parent.


-Tom
MVP - Visual Basic
(please post replies to the newsgroup)
.



Relevant Pages