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
Return ValuesSuccessfully changed scaling factor. See Also |
Build on Friday, March 17, 2000
|