PlanetSquires Forums

Support Forums => José Roca Software => Topic started by: Paul Squires on January 24, 2022, 11:13:30 PM

Title: @Jose Header_GetItemText
Post by: Paul Squires on January 24, 2022, 11:13:30 PM
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!
Title: Re: @Jose Header_GetItemText
Post by: José Roca on February 23, 2022, 03:00:11 PM
Modified. Sorry for the delay.
Title: Re: @Jose Header_GetItemText
Post by: Paul Squires on February 23, 2022, 08:42:20 PM
Thanks José - appreciate it