applied patch #2041919 - nsDialogs: controls for listboxes
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5695 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
695530d8ae
commit
bbebb7cef4
2 changed files with 63 additions and 0 deletions
|
@ -436,6 +436,30 @@ Header file for creating custom installer pages with nsDialogs
|
|||
|
||||
!define NSD_LB_AddString "!insertmacro _NSD_LB_AddString"
|
||||
|
||||
!macro __NSD_LB_DelString CONTROL STRING
|
||||
|
||||
SendMessage ${CONTROL} ${LB_DELETESTRING} 0 `STR:${STRING}`
|
||||
|
||||
!macroend
|
||||
|
||||
!define NSD_LB_DelString `!insertmacro __NSD_LB_DelString`
|
||||
|
||||
!macro __NSD_LB_Clear CONTROL VAR
|
||||
|
||||
SendMessage ${CONTROL} ${LB_RESETCONTENT} 0 0 ${VAR}
|
||||
|
||||
!macroend
|
||||
|
||||
!define NSD_LB_Clear `!insertmacro __NSD_LB_Clear`
|
||||
|
||||
!macro __NSD_LB_GetCount CONTROL VAR
|
||||
|
||||
SendMessage ${CONTROL} ${LB_GETCOUNT} 0 0 ${VAR}
|
||||
|
||||
!macroend
|
||||
|
||||
!define NSD_LB_GetCount `!insertmacro __NSD_LB_GetCount`
|
||||
|
||||
!macro _NSD_LB_SelectString CONTROL STRING
|
||||
|
||||
SendMessage ${CONTROL} ${LB_SELECTSTRING} -1 `STR:${STRING}`
|
||||
|
@ -444,6 +468,17 @@ Header file for creating custom installer pages with nsDialogs
|
|||
|
||||
!define NSD_LB_SelectString "!insertmacro _NSD_LB_SelectString"
|
||||
|
||||
!macro __NSD_LB_GetSelection CONTROL VAR
|
||||
|
||||
SendMessage ${CONTROL} ${LB_GETCURSEL} 0 0 ${VAR}
|
||||
System::Call 'user32::SendMessage(i ${CONTROL}, i ${LB_GETTEXT}, i ${VAR}, t .s)'
|
||||
Pop ${VAR}
|
||||
|
||||
!macroend
|
||||
|
||||
!define NSD_LB_GetSelection `!insertmacro __NSD_LB_GetSelection`
|
||||
|
||||
|
||||
!macro __NSD_SetImage CONTROL IMAGE HANDLE
|
||||
|
||||
Push $0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue