LVM_GETSTRINGWIDTH

This message determines the width of a specified string, using the specified list view control’s current font. You can send this message explicitly or by using the ListView_GetStringWidth macro.

At a Glance

Header file: Commctrl.h
Windows CE versions: 1.0 and later
Related macro: ListView_GetStringWidth

Syntax

LVM_GETSTRINGWIDTH wParam = 0;
lParam = (LPARAM)(LPCSTR) psz;

Parameters

psz

Pointer to a null-terminated string

Return Values

The string width indicates success. Zero indicates failure.