View Single Post
Old 8th August 2020, 19:10   #3
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,296
PHP Code:
!macro LVCheckAll hLV tempvar
System
::Call '*(i ${LVIF_STATE},i,i 0,i0x2000,&i${NSIS_PTR_SIZE} ${LVIS_STATEIMAGEMASK},p0,i0,i,p)p.s'
Pop ${tempvar}
SendMessage ${hLV} ${LVM_SETITEMSTATE} -${tempvar}
System::Free ${tempvar}
!
macroend

!macro LVUncheckAll hLV tempvar
System
::Call '*(i ${LVIF_STATE},i,i 0,i0x1000,&i${NSIS_PTR_SIZE} ${LVIS_STATEIMAGEMASK},p0,i0,i,p)p.s'
Pop ${tempvar}
SendMessage ${hLV} ${LVM_SETITEMSTATE} -${tempvar}
System::Free ${tempvar}
!
macroend

...

!
insertmacro LVCheckAll $hListCtl $

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote