SetGadgetScale

Core

SetGadgetScale() changes the specified Gadget's scaling factor. Scaling is determined from the upper-left corner of the Gadget and is applied dynamically during painting and hit-testing. The Gadget's logical rectangle set by SetGadgetRect() does not change. 

 

When scaling is applied to a Gadget, the entire subtree of that Gadget is scaled. To remove any scaling factor, use X=1.0, Y=1.0.

BOOL SetGadgetScale(
    HGADGET hgadChange,         // Gadget to change
    float fX,                   // New horizontal scaling factor
    float fY)                   // New vertical scaling factor
);

Parameters

hgad
[in] Gadget to change
flX
[in] New horizontal scaling factor
flY
[in] New vertical scaling factor

Return Values

Successfully changed scaling factor.

See Also

GetGadgetRect, GetGadgetRotation, GetGadgetScale, SetGadgetRect, SetGadgetRotation

 

 


Internal Only

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