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.
Option | Return codes | Description |
---|---|---|
HTTB_BACKGROUNDSEG | HTBOTTOM | Hit test succeeded in the bottom border segment. |
HTBOTTOMLEFT | Hit test succeeded in the bottom and left border intersection. | |
HTBOTTOMRIGHT | Hit test succeeded in the bottom and right border intersection. | |
HTCLIENT | Hit test succeeded in the middle background segment. | |
HTLEFT | Hit test succeeded in the left border segment. | |
HTNOWHERE | Hit test succeeded outside the control or on a transparent area. | |
HTRIGHT | Hit test succeeded in the right border segment. | |
HTTOP | Hit test succeeded in the top border segment. | |
HTTOPLEFT | Hit test succeeded in top and left border intersection. | |
HTTOPRIGHT | Hit test succeeded in the top and right border intersection. | |
HTTB_CAPTION | HTCAPTION | Hit test succeeded in the top, top left, or top right background segments. |
HTNOWHERE | Hit test succeeded outside the control or on a transparent area. | |
HTTB_FIXEDBORDER | HTBORDER | Hit test succeeded in any background segment except the middle background segment. |
HTCLIENT | Hit test succeeded in the middle background segment. | |
HTTB_RESIZINGBORDER | HTBORDER | Hit test failed in the middle background segment and resizing zones, but succeeded in a background border segment. |
HTTB_RESIZINGBORDER_BOTTOM | HTBOTTOM | Hit test succeeded in the bottom border segment. |
HTTB_RESIZINGBORDER_LEFT | HTLEFT | Hit test succeeded in the left border segment. |
HTTB_RESIZINGBORDER_RIGHT | HTRIGHT | Hit test succeeded in the right border segment. |
HTTB_RESIZINGBORDER_TOP | HTTOP | Hit test succeeded in the top border segment. |