Talk:Header file for Listview

From NSIS Wiki
Jump to navigationJump to search

Buggy defines

Defines like LVM_INSERTCOLUMN should depend on the Ansi/Unicode target.

To make sure this is done correctly you should include WinMessages.nsh first:

!include WinMessages.nsh ; Hopefully defines some of the LVM_ messages correctly
!ifndef LVM_GETITEMTEXT
!define /math LVM_GETITEMTEXTA ${LVM_FIRST} + 45
!define /math LVM_GETITEMTEXTW ${LVM_FIRST} + 115
${_NSIS_DEFAW} LVM_GETITEMTEXT
!endif
!include "CommCtrl.nsh"
!define /ifndef _COMMCTRL_NSH_VERBOSE 3 ; Fix another bug in the .nsh

This will only fix recent versions, anything released before 20120805 (v2.x) needs to be manually fixed.

Anders (talk) 17:12, 11 December 2017 (UTC)