PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: @Jose Header_GetItemText  (Read 317 times)

Paul Squires

  • Administrator
  • Guru Member
  • *****
  • Posts: 9497
  • Windows 10
    • PlanetSquires Software
@Jose Header_GetItemText
« on: January 24, 2022, 10:43: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!
Logged
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

Josť Roca

  • Moderator
  • Guru Member
  • *****
  • Posts: 3341
Re: @Jose Header_GetItemText
« Reply #1 on: February 23, 2022, 02:30:11 PM »

Modified. Sorry for the delay.

Paul Squires

  • Administrator
  • Guru Member
  • *****
  • Posts: 9497
  • Windows 10
    • PlanetSquires Software
Re: @Jose Header_GetItemText
« Reply #2 on: February 23, 2022, 08:12:20 PM »

Thanks Josť - appreciate it
Logged
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer