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:
| | Name | Value | Description | |
| |
exHitTestInvalid | -1
|
Invalid hit-test code.
| |
| |
exHitTestMargin | 0
|
Indicates a margin of the element.
| |
| |
exHitTestStatus | 1
|
Indicates the status part of the element.
| |
| |
exHitTestClient | 2
|
Indicates the client part of the element.
| |
| |
exHitTestPicture | 3
|
Indicates a picture of the element.
| |
| |
exHitTestCaption | 4
|
Indicates the caption of the element.
| |
| |
exHitTestExtraCaption | 5
|
Indicates the extra caption of the element.
| |
| |
exHitTestCheckBox | 6
|
Indicates the check-box of the element.
| |
| |
exHitTestGlyph | 7
|
Indicates the glyph of the element.
| |
| |
exHitTestMask | 255
|
Indicates the mask for the hit-test code.
| |
| |
exHitTestClientTopLeft | 0
|
Indicates the top-left portion of the object.
| |
| |
exHitTestClientTopCenter | 256
|
Indicates the top-center portion of the object.
| |
| |
exHitTestClientTopRight | 512
|
Indicates the top-right portion of the object.
| |
| |
exHitTestClientMiddleLeft | 4096
|
Indicates the middle-left portion of the object.
| |
| |
exHitTestClientMiddleCenter | 4352
|
Indicates the midle-center portion of the object.
| |
| |
exHitTestClientMiddleRight | 4608
|
Indicates the midle-right portion of the object.
| |
| |
exHitTestClientBottomLeft | 8192
|
Indicates the bottom-left portion of the object.
| |
| |
exHitTestClientBottomCenter | 8448
|
Indicates the bottom-center portion of the object.
| |
| |
exHitTestClientBottomRight | 8704
|
Indicates the bottom-right portion of the object.
| |