Dimitrie O. Paun wrote:
ChangeLog Use the LVCFMT_{LEFT,RIGHT,CENTER} enumeration flags properly.
/* set text alignment (leftmost column must be left-aligned) */
if (nColumn == 0 || lpColumn->fmt & LVCFMT_LEFT)
if (nColumn == 0 || (lpColumn->fmt & LVCFMT_JUSTIFYMASK) ==
LVCFMT_LEFT) lphdi->fmt |= HDF_LEFT;
HDF_LEFT is also 0, so should we get rid of the first check, and only check for LVCFMT_RIGHT and LVCFMT_CENTER?
if (lpColumn->fmt & LVCFMT_BITMAP_ON_RIGHT)
-- Dimi.
Cheers,
Paul.