SetGadgetParent

Core

SetGadgetParent changes the Gadget's parent.

BOOL SetGadgetParent(
    HGADGET hgadMove,           // Gadget to be moved
    HGADGET hgadParent,         // New parent
    HGADGET hgadOther,          // Gadget to moved relative to
    UINT nCmd                   // Type of move
);

Parameters

hgadMove
[in] Gadget to be moved
hgadParent
[in] New parent
hgadOther
[in] Gadget to moved relative to
nFlags
[in] nFlags can be a combination of the following flags:

Value Meaning
GORDER_BEFORE Move this gadget in-front of sibling hgadOther.
GORDER_BEHIND Move this gadget behind sibling hgadOther.
GORDER_TOP Move this gadget to front of sibling z-order.
GORDER_BOTTOM Move this gadget to bottom of sibling z-order.


Return Values

Gadget parent and z-order were successfully changed.

See Also

GetGadget, SetGadgetOrder

 


Internal Only

Build on Friday, March 17, 2000
Copyright © 2000 by Microsoft Corporation.  All rights reserved
Send feedback to Jeff Stall