This is how the stock listview control works in Windows.
The main header text is not included when auto sizing the column width.
The main result list doesn't use the stock listview control.
I will consider using my own listview control for other dialogs.
Thank you for the suggestion.