Clear Details Window: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
m (Updated author and download links, and changed format of some pages.)
m (Updated author links.)
Line 1: Line 1:
{|align=right
|<small>Author: [[{{ns:2}}:techkid|techkid]] ([[{{ns:3}}:techkid|talk]], [[{{ns:-1}}:Contributions/techkid|contrib]])</small>
|}
<br style="clear:both;">
== Description ==
== Description ==
This code allows you to clear the nsis details window. This code Finds the window the dialog and uses SendMessage to clear the window. Kichik helped with the code.  
This code allows you to clear the nsis details window. This code Finds the window the dialog and uses SendMessage to clear the window. Kichik helped with the code.  
Line 14: Line 18:
FunctionEnd
FunctionEnd
</highlight-nsis>
</highlight-nsis>
Page author: [[User:techkid|techkid]]

Revision as of 23:15, 29 April 2005

Author: techkid (talk, contrib)


Description

This code allows you to clear the nsis details window. This code Finds the window the dialog and uses SendMessage to clear the window. Kichik helped with the code.

The Function

; Clear Details in NSIS
!define LVM_DELETEALLITEMS 0x1009
Function ClearDetails
  Push $0
  FindWindow $0 "#32770" "" $HWNDPARENT
  GetDlgItem $0 $0 1016
  SendMessage $0 ${LVM_DELETEALLITEMS} 0 0
  Pop $0
FunctionEnd