SetGadgetFocus

Core

SetGadgetFocus moves keyboard focus to the specified Gadget. Both the current Gadget with keyboard focus and the Gadget being specified will be sent a GM_CHANGESTATE message with nCode=GSTATE_FOCUS notifying of the focus change.

BOOL SetGadgetFocus(
    HGADGET hgadFocus           // Gadget to receive focus
);

Parameters

hgadFocus
[in] Gadget to receive focus.

Return Values

Focus was successfully moved.

See Also

GetGadgetFocus, GM_CHANGESTATE

 

 


Internal Only

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