Advertisement
3_2004-2005 Windows API Call/ Explanation #138606

API ListView Autosize Width of Column Headers (based on widest row)

API call to autosize the columns in a ListView control. I made this example because I could only find mediocre examples that worked by getting the Len() of every row, multiplying it by something, and comparing it to the column width. This uses only one command to do the actual resizing and is definately faster. Update (12/07/2000 20:52 CST): Corrected typo, better screenshot. Update (04/27/2002 15:00 CST): Moved code into one form, Added LVSCW_AUTOSIZE_USEHEADER, Added COMMCTL32.DLL known bug with fix, Added individual bold item known bug with fix. Update (12/31/2004 22:00 CST): Updated website, Released under GPL, PNG screenshot.

AI

Shrnutí AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Zdrojový kód
original-source
Upload
Původní komentáře (3)
Obnoveno z Wayback Machine