Hi Jose,
Small omission in Header_GetItemText in AfxCtl.inc
The nItem is always set to zero (0). Hopefully you can update the includes with the correction:
current incorrect line:
FUNCTION = SendMessageW(hwndHD, HDM_GETITEMW, 0, cast(LPARAM, cast(HDITEMW PTR, @hdi)))
new line:
FUNCTION = SendMessageW(hwndHD, HDM_GETITEMW, cast(WPARAM, nItem), cast(LPARAM, cast(HDITEMW PTR, @hdi)))
Also, looks like the code in ListView_GetHeaderText is correct.
Thanks!
Modified. Sorry for the delay.
Thanks José - appreciate it