glory_man
16th March 2005 13:24 UTC
Move to the top of details view
Using DetailPrint I wrote for example 20 string. After execution detail window shows the last strnig at the bottom.
I try to send some messages (LVM_SETHOTITEM, LVM_SETSCROLLPOS, LVM_ENSUREVISIBLE) but failed.
What I must do to move scrolling of detail view to the top?
And how to select string (item) of detail window?
Joel
16th March 2005 14:12 UTC
I understand this: You want to auto-scroll the detail or log window, after printing your strings, to the first one?
glory_man
16th March 2005 14:18 UTC
Yez.
glory_man
16th March 2005 15:03 UTC
Is this contol listbox or listview? And if it is listview - what mode does it work in (list or report)?
Afrow UK
16th March 2005 16:01 UTC
It's a Report SysListView32
-Stu
glory_man
17th March 2005 10:16 UTC
It's very strange.
I asked our programmer to create a little project in MFC with listview and button. We tried to send LVM_ENSUREVISIBLE into control. And all worked - after button was pressed listview scrolled to the top.
Maybe developers can help me?
kichik
17th March 2005 17:59 UTC
What's the NSIS script equivalent you've tried?
glory_man
18th March 2005 11:12 UTC
!define LVM_ENSUREVISIBLE 0x1013
Section "bla"
...bla-bla ...
... DetailPrint many times ....
FindWindow $0 "#32770" "" $HWNDPARENT
StrCpy $1 $0
GetDlgItem $0 $1 0x3F8
SendMessage $0 ${LVM_ENSUREVISIBLE} 0 0
SectionEnd
kichik
18th March 2005 11:46 UTC
When "Completed" is printed, it goes back down. Put the code on the leave function of the instfiles page.
glory_man
18th March 2005 12:01 UTC
Thanks kichik. You are right as usual.