SetGadgetRotation

Core

SetGadgetRotation changes the specified Gadget's rotation factor in radians. 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 rotation is applied to a Gadget, the entire subtree of that Gadget is rotated. To remove any rotation factor, use 0.0.

BOOL SetGadgetRotation(
    HGADGET hgadChange,         // Gadget to change
    float flRotationRad)        // New rotation factor in radians
);

Parameters

hgad
[in] Gadget to change
pflRotationRad
[in] New rotation factor in radians

Return Values

Successfully changed rotation factor.

See Also

GetGadgetRect, GetGadgetRotation, GetGadgetScale, SetGadgetRect, SetGadgetScale

 

 


Internal Only

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