BCGSuite for MFC
int CBCGPGridColumnsInfo::HitTestColumn ( CPoint  point,
BOOL  bDelimiter = FALSE,
int  nDelta = 0,
CBCGPGridColumnsInfo::ClickArea *  pnArea = NULL 
) const

Call this method to obtain information about a column from the given point.

Parameters
pointCoordinates.
bDelimiterSpecifies whether delimiter between columns should be ignored.
nDeltaA width of delimiter between columns.
pnAreaAn optional pointer to ClickArea structure.
Returns
Zero-based index of the column or (-1) if given point doesn't contain any columns.