Export (0) Print
Expand All

Hit Test Return Values

This section lists the hit test code values that are returned in the pwHitTestCode parameter of the HitTestThemeBackground function. The code values returned depend on the hit test options specified in the dwOptions parameter of the HitTestThemeBackground function. For a list of the options, see Hit Test Options.

Return Values

The following table lists the hit test options and the corresponding return codes.

OptionReturn codesDescription
HTTB_BACKGROUNDSEGHTBOTTOMHit test succeeded in the bottom border segment.
HTBOTTOMLEFTHit test succeeded in the bottom and left border intersection.
HTBOTTOMRIGHTHit test succeeded in the bottom and right border intersection.
HTCLIENTHit test succeeded in the middle background segment.
HTLEFTHit test succeeded in the left border segment.
HTNOWHEREHit test succeeded outside the control or on a transparent area.
HTRIGHTHit test succeeded in the right border segment.
HTTOPHit test succeeded in the top border segment.
HTTOPLEFTHit test succeeded in top and left border intersection.
HTTOPRIGHTHit test succeeded in the top and right border intersection.
HTTB_CAPTIONHTCAPTIONHit test succeeded in the top, top left, or top right background segments.
HTNOWHEREHit test succeeded outside the control or on a transparent area.
HTTB_FIXEDBORDERHTBORDERHit test succeeded in any background segment except the middle background segment.
HTCLIENTHit test succeeded in the middle background segment.
HTTB_RESIZINGBORDERHTBORDERHit test failed in the middle background segment and resizing zones, but succeeded in a background border segment.
HTTB_RESIZINGBORDER_BOTTOMHTBOTTOMHit test succeeded in the bottom border segment.
HTTB_RESIZINGBORDER_LEFTHTLEFTHit test succeeded in the left border segment.
HTTB_RESIZINGBORDER_RIGHTHTRIGHTHit test succeeded in the right border segment.
HTTB_RESIZINGBORDER_TOPHTTOPHit test succeeded in the top border segment.

 

 

 

Community Additions

ADD
Show:
© 2014 Microsoft