constants HitTestCodeEnum
The HitTestCodeEnum type specifies the parts of the element being handled by the HitTestFromPoint property. The exHitTestClient... flags can be combined with any other flags. The HitTestCodeEnum type supports the following values:

NameValueDescription
exHitTestInvalid-1 Invalid hit-test code.
exHitTestMargin0 Indicates a margin of the element.
exHitTestStatus1 Indicates the status part of the element.
exHitTestClient2 Indicates the client part of the element.
exHitTestPicture3 Indicates a picture of the element.
exHitTestCaption4 Indicates the caption of the element.
exHitTestExtraCaption5 Indicates the extra caption of the element.
exHitTestCheckBox6 Indicates the check-box of the element.
exHitTestGlyph7 Indicates the glyph of the element.
exHitTestMask255 Indicates the mask for the hit-test code.
exHitTestClientTopLeft0 Indicates the top-left portion of the object.
exHitTestClientTopCenter256 Indicates the top-center portion of the object.
exHitTestClientTopRight512 Indicates the top-right portion of the object.
exHitTestClientMiddleLeft4096 Indicates the middle-left portion of the object.
exHitTestClientMiddleCenter4352 Indicates the midle-center portion of the object.
exHitTestClientMiddleRight4608 Indicates the midle-right portion of the object.
exHitTestClientBottomLeft8192 Indicates the bottom-left portion of the object.
exHitTestClientBottomCenter8448 Indicates the bottom-center portion of the object.
exHitTestClientBottomRight8704 Indicates the bottom-right portion of the object.