| CBCGPGridRow* CBCGPGridCtrl::HitTest | ( | CPoint | pt, |
| CBCGPGridItemID & | id, | ||
| CBCGPGridItem *& | pItem, | ||
| CBCGPGridRow::ClickArea * | pnArea = NULL, |
||
| BOOL | bItemsOnly = FALSE |
||
| ) |
Returns the current position of the cursor related to the CBCGPGridCtrl object.
Call this function to determine the location of the specified point relative to the client area of a grid control.
When the function returns and the return value is not NULL, pnArea contains one of the following values:
The id contains the clicked item ID (CBCGPGridItemID).
| pt | Client coordinates of the point to test. |
| id | Receives information about clicked item. |
| pItem | Points to clicked items when the function returns. It's NULL if no item is clicked. |
| pnArea | Receives information about the results of the hit test. |
| bItemsOnly | If TRUE, the function will hit test only area of items. |