BCGSuite for MFC
void CBCGPGridCtrl::EnableColumnWidthAutoSizeOnHeaderDblClick ( BOOL  bEnable)

Specifies whether double-clicking column header divider will resize the column to fit the column content.

Parameters
bEnableTrue to enable, false to disable.