Prev Next
ListView_GetStringWidth info Overview GroupThe ListView_GetStringWidth macro determines the width of a specified string, using the specified list view control’s current font. You can use this macro or explicitly send the LVM_GETSTRINGWIDTH message. int ListView_GetStringWidth(
Parameters
Return ValuesReturns the string width if successful or zero otherwise. RemarksThe ListView_GetStringWidth macro returns the exact width, in pixels, of the specified string. If you use the returned string width as the column width in a call to the ListView_SetColumnWidth macro, the string will be truncated. To get the column width that can contain the string without truncating it, you must add padding to the returned string width. See Also |