BCGControlBar Pro for MFC
CRect CBCGPGridCtrl::GetGridHeaderRect ( ) const

Returns bounding rectangle of grid header.

Use this function to retrieve the bounding rectangle of the grid header. The grid header is a reserved space at the top of the grid just below the column header where you can add your custom controls.