SetGadgetFill

Core

SetGadgetFill specifies an optional brush to fill the Gadget's background with when drawing. The background will be filled before the Gadget is given the GM_PAINT message to draw.

BOOL SetGadgetFill(
    HGADGET hgadChange,         // Gadget to change
    HBRUSH hbrFill,             // Brush to fill with or NULL to remove
    BYTE bAlpha,                // Alpha level to apply brush
    int w,                      // brush width 
    int h                       // brush height 
);

Parameters

hgadChange
[in] Gadget to change
hbrFill
[in] Brush to fill with or NULL to remove
bAlpha
[in] Alpha level to apply brush
w
[in] Optional width of brush when alpha-blending or 0 for default
h
[in] Optional height of brush when alpha-blending or 0 for default

Return Values

Fill was successfully set.

See Also

UtilDrawBlendRect, GM_PAINT

 

 


Internal Only

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