Professional User Interface Suite, Copyright FOSS Software Inc. Help Published with Permission.
class CExtGridHitTestInfo

Remarks

The CExtGridHitTestInfo class encapsulates hit-test data in the grid control and a set of helper methods.

Header

ExtGridWnd.h

Constants

The following constants, which are stored in the CExtGridHitTestInfo::m_dwAreaFlags member, specify which part of the grid is covered by the mouse pointer:

Value Meaning
__EGBWA_NOWHERE Some part of the grid that is not specified with other constants or outside the grid control window.
__EGBWA_OUTER_TOP Outer area over the top of the data cell.
__EGBWA_OUTER_BOTTOM Outer area under the bottom of the data cell.
__EGBWA_OUTER_V Outer area over the top or under the bottom of the data cell.
__EGBWA_OUTER_LEFT Outer area on the left of the data cell.
__EGBWA_OUTER_RIGHT Outer area on the right of the data cell.
__EGBWA_OUTER_H Outer area on the left or on the right of the data cell.
__EGBWA_OUTER_SIDE_MASK Outer area over the top, under the bottom, at the left, or on the right of the data cell.
__EGBWA_NEAR_CELL_BORDER_TOP Top border of the cell.
__EGBWA_NEAR_CELL_BORDER_BOTTOM Bottom border of the cell.
__EGBWA_NEAR_CELL_BORDER_V Top or bottom border of the cell.
__EGBWA_NEAR_CELL_BORDER_LEFT Left border of the cell.
__EGBWA_NEAR_CELL_BORDER_RIGHT Right border of the cell.
__EGBWA_NEAR_CELL_BORDER_H Left or right border of the cell.
__EGBWA_NEAR_CELL_BORDER_SIDE_MASK Left, right, top, or bottom border of the cell.
__EGBWA_OUTER_CELLS Any outer cell.
__EGBWA_INNER_CELLS Any inner cell.

The CExtGridCell::OnHitTestInfoAdjust() method sets the m_nButtonType and m_rcPart properties and specifies which part of the cell is covered by the mouse pointer:

Value Meaning
__EGBWA_CELL_CHECKBOX Check-box. The m_rcPart property contains its rectangle.
__EGBWA_CELL_IMAGE Image.The m_rcPart property contains its rectangle.
__EGBWA_CELL_BUTTON Built-in button.
__EGBWA_CELL_TEXT Check-box. The nButtonType value contains the type of the button and the m_rcPart property contains the button's rectangle.
__EGBWA_CELL_TEXT_AREA Text. The m_rcPart property contains the rectangle that surrounds the text.
__EGBWA_CELL_SORT_ARROW Sort arrow. The m_rcPart property contains the rectangle that surrounds the sort arrow.
__EGBWA_CELL_FOCUS_ARROW Focus arrow. The m_rcPart property contains the rectangle that surrounds the focus arrow.
__EGBWA_CELL_MASK Mask for all __EGBWA_CELL_* constants.
__EGBWA_FROZEN_AREA_BOTTOM Number of frozen rows at the bottom.
__EGBWA_FROZEN_AREA_LEFT Number of frozen columns on the left.
__EGBWA_FROZEN_AREA_RIGHT Number of frozen columns on the right.
__EGBWA_FROZEN_AREA_TOP Number of frozen rows at the top.
__EGBWA_TREE_BOX Tree box.
__EGBWA_TREE_BOX_IS_EXPANDED Tree box is expanded.
__EGBWA_TREE_OUTLINE_AREA Tree outline area.

See Also

Class Members | Hierarchy Chart