Resize listview column to autofit on a doubleclick on the

header-divider.
This commit is contained in:
Felix Nawothnig 2005-05-18 09:47:30 +00:00 committed by Alexandre Julliard
parent 86cdb432c5
commit 43201e072b
1 changed files with 5 additions and 0 deletions

View File

@ -8288,6 +8288,11 @@ static LRESULT LISTVIEW_HeaderNotification(LISTVIEW_INFO *infoPtr, const NMHEADE
notify_listview(infoPtr, LVN_COLUMNCLICK, &nmlv);
}
break;
case HDN_DIVIDERDBLCLICKW:
case HDN_DIVIDERDBLCLICKA:
LISTVIEW_SetColumnWidth(infoPtr, lpnmh->iItem, LVSCW_AUTOSIZE);
break;
}
return 0;